getRegionalParameterVersionRender

Get the value and metadata from a Parameter Manager Regional Parameter version with rendered payload data. For this datasource to work as expected, the principal of the parameter must be provided with the Secret Manager Secret Accessor role. For more information see the official documentation and API.

Warning: To use this data source, we must grant the Secret Manager Secret Accessor role to the principal of the parameter. Please note that it can take up to 7 minutes for the role to take effect. Hence, we might need to wait approximately 7 minutes after granting Secret Manager Secret Accessor role to the principal of the parameter. For more information see the access change propagation documentation.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = gcp.parametermanager.getRegionalParameterVersionRender({
parameter: "test-regional-parameter",
parameterVersionId: "test-regional-parameter-version",
location: "us-central1",
});
import pulumi
import pulumi_gcp as gcp
basic = gcp.parametermanager.get_regional_parameter_version_render(parameter="test-regional-parameter",
parameter_version_id="test-regional-parameter-version",
location="us-central1")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var basic = Gcp.ParameterManager.GetRegionalParameterVersionRender.Invoke(new()
{
Parameter = "test-regional-parameter",
ParameterVersionId = "test-regional-parameter-version",
Location = "us-central1",
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/parametermanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := parametermanager.GetRegionalParameterVersionRender(ctx, &parametermanager.GetRegionalParameterVersionRenderArgs{
Parameter: "test-regional-parameter",
ParameterVersionId: "test-regional-parameter-version",
Location: pulumi.StringRef("us-central1"),
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.parametermanager.ParametermanagerFunctions;
import com.pulumi.gcp.parametermanager.inputs.GetRegionalParameterVersionRenderArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var basic = ParametermanagerFunctions.getRegionalParameterVersionRender(GetRegionalParameterVersionRenderArgs.builder()
.parameter("test-regional-parameter")
.parameterVersionId("test-regional-parameter-version")
.location("us-central1")
.build());
}
}
variables:
basic:
fn::invoke:
function: gcp:parametermanager:getRegionalParameterVersionRender
arguments:
parameter: test-regional-parameter
parameterVersionId: test-regional-parameter-version
location: us-central1

Return

A collection of values returned by getRegionalParameterVersionRender.

Parameters

argument

A collection of arguments for invoking getRegionalParameterVersionRender.


suspend fun getRegionalParameterVersionRender(location: String? = null, parameter: String, parameterVersionId: String, project: String? = null): GetRegionalParameterVersionRenderResult

Return

A collection of values returned by getRegionalParameterVersionRender.

Parameters

location

Location of Parameter Manager regional Parameter resource. It must be provided when the parameter field provided consists of only the name of the regional parameter.

parameter

The Parameter for obtaining the Regional Parameter Version. This can be either the reference of the parameter as in projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}} or only the name of the parameter as in {{parameter_id}}.

parameterVersionId

The version of the regional parameter to get.

project

The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.

See also


Return

A collection of values returned by getRegionalParameterVersionRender.

Parameters

argument

Builder for com.pulumi.gcp.parametermanager.kotlin.inputs.GetRegionalParameterVersionRenderPlainArgs.

See also