|
| 1 | +--- |
| 2 | +subcategory: "Parameter Manager" |
| 3 | +description: |- |
| 4 | + Get information about an Parameter Manager Parameter Version Render |
| 5 | +--- |
| 6 | + |
| 7 | +# google_parameter_manager_parameter_version_render |
| 8 | + |
| 9 | +Get the value and metadata from a Parameter Manager Parameter version with render payload data. For this datasource to work as expected, the principal of the parameter must be provided with the [Secret Manager Secret Accessor](https://cloud.google.com/secret-manager/docs/access-control#secretmanager.secretAccessor) role. For more information see the [official documentation](https://cloud.google.com/secret-manager/parameter-manager/docs/overview) and [API](https://cloud.google.com/secret-manager/parameter-manager/docs/reference/rest/v1/projects.locations.parameters.versions/render). |
| 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_parameter_version_render" "basic" { |
| 18 | + parameter = "test-parameter" |
| 19 | + parameter_version_id = "test-parameter-version" |
| 20 | +} |
| 21 | +``` |
| 22 | + |
| 23 | +## Argument Reference |
| 24 | + |
| 25 | +The following arguments are supported: |
| 26 | + |
| 27 | +* `project` - (Optional) The project for retrieving the Parameter Version. If it's not specified, |
| 28 | + the provider project will be used. |
| 29 | + |
| 30 | +* `parameter` - (Required) The Parameter for obtaining the Parameter Version. |
| 31 | + This can be either the reference of the parameter as in `projects/{{project}}/locations/global/parameters/{{parameter_id}}` or only the name of the parameter as in `{{parameter_id}}`. |
| 32 | + |
| 33 | +* `parameter_version_id` - (Required) The version of the parameter to get. |
| 34 | + |
| 35 | +## Attributes Reference |
| 36 | + |
| 37 | +The following attributes are exported: |
| 38 | + |
| 39 | +* `parameter_data` - The Parameter data. |
| 40 | + |
| 41 | +* `render_parameter_data` - The Rendered Parameter Data specifies that if you use `__REF__()` to reference a secret and the format is JSON or YAML, the placeholder `__REF__()` will be replaced with the actual secret value. However, if the format is UNFORMATTED, it will stay the same as the original `parameter_data`. |
| 42 | + |
| 43 | +* `name` - The resource name of the ParameterVersion. Format: |
| 44 | + `projects/{{project}}/locations/global/parameters/{{parameter_id}}/versions/{{parameter_version_id}}` |
| 45 | + |
| 46 | +* `disabled` - The current state of the Parameter Version. |
0 commit comments