Skip to content

Commit 8bb1627

Browse files
Add support for parameter manager parameters datasource google_parameter_manager_parameters (#12652) (#21043)
[upstream:ae6e020d0aa15e1525ae84c5bdf9657b13a5965b] Signed-off-by: Modular Magician <[email protected]>
1 parent 1f62a3d commit 8bb1627

File tree

4 files changed

+72
-0
lines changed

4 files changed

+72
-0
lines changed

.changelog/12652.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:new-datasource
2+
`google_parameter_manager_parameters`
3+
```
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
package parametermanager
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// Copyright (c) HashiCorp, Inc.
2+
// SPDX-License-Identifier: MPL-2.0
3+
package parametermanager_test
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
---
2+
subcategory: "Parameter Manager"
3+
description: |-
4+
List the Parameter Manager Parameters.
5+
---
6+
7+
# google_parameter_manager_parameters
8+
9+
Use this data source to list the Parameter Manager Parameters.
10+
11+
~> **Warning:** This datasource is in beta, and should be used with the terraform-provider-google-beta provider.
12+
See [Provider Versions](https://terraform.io/docs/providers/google/guides/provider_versions.html) for more details on beta datasources.
13+
14+
## Example Usage
15+
16+
```hcl
17+
data "google_parameter_manager_parameters" "parameters" {
18+
}
19+
```
20+
21+
## Argument Reference
22+
23+
The following arguments are supported:
24+
25+
* `project` - (optional) The ID of the project.
26+
27+
* `filter` - (optional) Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
28+
29+
## Attributes Reference
30+
31+
In addition to the arguments listed above, the following computed attributes are
32+
exported:
33+
34+
* `parameters` - A list of parameters matching the filter. Structure is [defined below](#nested_parameters).
35+
36+
<a name="nested_parameters"></a>The `parameters` block supports:
37+
38+
* `format` - The format type of the parameter.
39+
40+
* `labels` - The labels assigned to the parameter.
41+
42+
* `create_time` - The time at which the parameter was created.
43+
44+
* `update_time` - The time at which the parameter was updated.
45+
46+
* `project` - The ID of the project in which the resource belongs.
47+
48+
* `parameter_id` - The unique name of the resource.
49+
50+
* `name` - The resource name of the parameter. Format: `projects/{{project}}/locations/global/parameters/{{parameter_id}}`
51+
52+
* `policy_member` - An object containing a unique resource identity tied to the parameter. Structure is [documented below](#nested_policy_member).
53+
54+
<a name="nested_policy_member"></a>The `policy_member` block contains:
55+
56+
* `iam_policy_uid_principal` - IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier.
57+
If a resource is deleted and recreated with the same name, the binding will not be applicable to the
58+
new resource. Format:
59+
`principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/global/parameters/{{uid}}`
60+
61+
* `iam_policy_name_principal` - AM policy binding member referring to a Google Cloud resource by user-assigned name. If a resource is deleted and recreated with the same name, the binding will be applicable to the
62+
new resource. Format:
63+
`principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/global/parameters/{{parameter_id}}`

0 commit comments

Comments
 (0)