diff --git a/docs/resources/datacenter_property_set.md b/docs/resources/datacenter_property_set.md index 9bbf824b..447c170d 100644 --- a/docs/resources/datacenter_property_set.md +++ b/docs/resources/datacenter_property_set.md @@ -14,7 +14,7 @@ This resource imports a property set into a Blueprint. ```terraform #reference a blueprint data "apstra_datacenter_blueprint" "b" { - name = "raj1" + name = "demo1" } #reference a property set from the global catalog data "apstra_property_set" "ps" { @@ -24,8 +24,7 @@ data "apstra_property_set" "ps" { resource "apstra_datacenter_property_set" "r" { blueprint_id = data.apstra_datacenter_blueprint.b.id id = data.apstra_property_set.ps.id -# uncomment below to import only one key. If no keys are mentioned, all keys are imported -# keys = toset(["junos_mgmt_vrf"]) + keys = data.apstra_property_set.ps.keys } output "p" { value = resource.apstra_datacenter_property_set.r @@ -35,7 +34,10 @@ output "p" { # "blueprint_id" = "d6c74373-45ce-4d88-9547-ac23c2ebe61e" # "data" = "{\"junos_mgmt_vrf\": \"mgmt_junos\", \"mgmt_vrf\": \"management\"}" # "id" = "3ae45f2e-c9ed-401b-8f00-367fb9a5e0e8" -# "keys" = toset(null) /* of string */ +# "keys" = toset([ +# "junos_mgmt_vrf", +# "mgmt_vrf", +# ]) # "name" = "MGMT VRF" # "stale" = false #} diff --git a/examples/resources/apstra_datacenter_property_set/example.tf b/examples/resources/apstra_datacenter_property_set/example.tf index 05e3b119..e9cc68d9 100644 --- a/examples/resources/apstra_datacenter_property_set/example.tf +++ b/examples/resources/apstra_datacenter_property_set/example.tf @@ -1,6 +1,6 @@ #reference a blueprint data "apstra_datacenter_blueprint" "b" { - name = "raj1" + name = "demo1" } #reference a property set from the global catalog data "apstra_property_set" "ps" { @@ -10,8 +10,7 @@ data "apstra_property_set" "ps" { resource "apstra_datacenter_property_set" "r" { blueprint_id = data.apstra_datacenter_blueprint.b.id id = data.apstra_property_set.ps.id -# uncomment below to import only one key. If no keys are mentioned, all keys are imported -# keys = toset(["junos_mgmt_vrf"]) + keys = data.apstra_property_set.ps.keys } output "p" { value = resource.apstra_datacenter_property_set.r @@ -21,7 +20,10 @@ output "p" { # "blueprint_id" = "d6c74373-45ce-4d88-9547-ac23c2ebe61e" # "data" = "{\"junos_mgmt_vrf\": \"mgmt_junos\", \"mgmt_vrf\": \"management\"}" # "id" = "3ae45f2e-c9ed-401b-8f00-367fb9a5e0e8" -# "keys" = toset(null) /* of string */ +# "keys" = toset([ +# "junos_mgmt_vrf", +# "mgmt_vrf", +# ]) # "name" = "MGMT VRF" # "stale" = false #}