Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi
gcp.parametermanager.getRegionalParameterVersion
Explore with Pulumi AI
Get the value and metadata from a Parameter Manager Regional Parameter version. For more information see the official documentation and API.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const basic = gcp.parametermanager.getRegionalParameterVersion({
    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(parameter="test-regional-parameter",
    parameter_version_id="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.LookupRegionalParameterVersion(ctx, ¶metermanager.LookupRegionalParameterVersionArgs{
			Parameter:          "test-regional-parameter",
			ParameterVersionId: "test-regional-parameter-version",
			Location:           pulumi.StringRef("us-central1"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var basic = Gcp.ParameterManager.GetRegionalParameterVersion.Invoke(new()
    {
        Parameter = "test-regional-parameter",
        ParameterVersionId = "test-regional-parameter-version",
        Location = "us-central1",
    });
});
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.GetRegionalParameterVersionArgs;
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.getRegionalParameterVersion(GetRegionalParameterVersionArgs.builder()
            .parameter("test-regional-parameter")
            .parameterVersionId("test-regional-parameter-version")
            .location("us-central1")
            .build());
    }
}
variables:
  basic:
    fn::invoke:
      function: gcp:parametermanager:getRegionalParameterVersion
      arguments:
        parameter: test-regional-parameter
        parameterVersionId: test-regional-parameter-version
        location: us-central1
Using getRegionalParameterVersion
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRegionalParameterVersion(args: GetRegionalParameterVersionArgs, opts?: InvokeOptions): Promise<GetRegionalParameterVersionResult>
function getRegionalParameterVersionOutput(args: GetRegionalParameterVersionOutputArgs, opts?: InvokeOptions): Output<GetRegionalParameterVersionResult>def get_regional_parameter_version(location: Optional[str] = None,
                                   parameter: Optional[str] = None,
                                   parameter_version_id: Optional[str] = None,
                                   project: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetRegionalParameterVersionResult
def get_regional_parameter_version_output(location: Optional[pulumi.Input[str]] = None,
                                   parameter: Optional[pulumi.Input[str]] = None,
                                   parameter_version_id: Optional[pulumi.Input[str]] = None,
                                   project: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetRegionalParameterVersionResult]func LookupRegionalParameterVersion(ctx *Context, args *LookupRegionalParameterVersionArgs, opts ...InvokeOption) (*LookupRegionalParameterVersionResult, error)
func LookupRegionalParameterVersionOutput(ctx *Context, args *LookupRegionalParameterVersionOutputArgs, opts ...InvokeOption) LookupRegionalParameterVersionResultOutput> Note: This function is named LookupRegionalParameterVersion in the Go SDK.
public static class GetRegionalParameterVersion 
{
    public static Task<GetRegionalParameterVersionResult> InvokeAsync(GetRegionalParameterVersionArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionalParameterVersionResult> Invoke(GetRegionalParameterVersionInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionalParameterVersionResult> getRegionalParameterVersion(GetRegionalParameterVersionArgs args, InvokeOptions options)
public static Output<GetRegionalParameterVersionResult> getRegionalParameterVersion(GetRegionalParameterVersionArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:parametermanager/getRegionalParameterVersion:getRegionalParameterVersion
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Parameter string
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - Parameter
Version stringId  - The version of the regional parameter to get.
 - Location string
 - The location of regional parameter.
 - Project string
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
- Parameter string
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - Parameter
Version stringId  - The version of the regional parameter to get.
 - Location string
 - The location of regional parameter.
 - Project string
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
- parameter String
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - parameter
Version StringId  - The version of the regional parameter to get.
 - location String
 - The location of regional parameter.
 - project String
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
- parameter string
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - parameter
Version stringId  - The version of the regional parameter to get.
 - location string
 - The location of regional parameter.
 - project string
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
- parameter str
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - parameter_
version_ strid  - The version of the regional parameter to get.
 - location str
 - The location of regional parameter.
 - project str
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
- parameter String
 - The parameter for obtaining the Regional Parameter Version.
This can be either the reference of the regional parameter as in 
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}or only the name of the regional parameter as in{{parameter_id}}. - parameter
Version StringId  - The version of the regional parameter to get.
 - location String
 - The location of regional parameter.
 - project String
 - The project for retrieving the Regional Parameter Version. If it's not specified, the provider project will be used.
 
getRegionalParameterVersion Result
The following output properties are available:
- Create
Time string - The time at which the Regional Parameter Version was created.
 - Disabled bool
 - The current state of the Regional Parameter Version.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Kms
Key stringVersion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - Location string
 - Name string
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - Parameter string
 - Parameter
Data string - The regional parameter data.
 - Parameter
Version stringId  - Project string
 - Update
Time string - The time at which the Regional Parameter Version was last updated.
 
- Create
Time string - The time at which the Regional Parameter Version was created.
 - Disabled bool
 - The current state of the Regional Parameter Version.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Kms
Key stringVersion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - Location string
 - Name string
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - Parameter string
 - Parameter
Data string - The regional parameter data.
 - Parameter
Version stringId  - Project string
 - Update
Time string - The time at which the Regional Parameter Version was last updated.
 
- create
Time String - The time at which the Regional Parameter Version was created.
 - disabled Boolean
 - The current state of the Regional Parameter Version.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - kms
Key StringVersion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - location String
 - name String
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - parameter String
 - parameter
Data String - The regional parameter data.
 - parameter
Version StringId  - project String
 - update
Time String - The time at which the Regional Parameter Version was last updated.
 
- create
Time string - The time at which the Regional Parameter Version was created.
 - disabled boolean
 - The current state of the Regional Parameter Version.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - kms
Key stringVersion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - location string
 - name string
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - parameter string
 - parameter
Data string - The regional parameter data.
 - parameter
Version stringId  - project string
 - update
Time string - The time at which the Regional Parameter Version was last updated.
 
- create_
time str - The time at which the Regional Parameter Version was created.
 - disabled bool
 - The current state of the Regional Parameter Version.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - kms_
key_ strversion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - location str
 - name str
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - parameter str
 - parameter_
data str - The regional parameter data.
 - parameter_
version_ strid  - project str
 - update_
time str - The time at which the Regional Parameter Version was last updated.
 
- create
Time String - The time at which the Regional Parameter Version was created.
 - disabled Boolean
 - The current state of the Regional Parameter Version.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - kms
Key StringVersion  - The resource name of the Cloud KMS CryptoKeyVersion used to decrypt regional parameter version payload. Format 
projects/{{project}}/locations/{{location}}/keyRings/{{key_ring}}/cryptoKeys/{{crypto_key}}/cryptoKeyVersions/{{crypto_key_version}} - location String
 - name String
 - The resource name of the Regional Parameter Version. Format:
projects/{{project}}/locations/{{location}}/parameters/{{parameter_id}}/versions/{{parameter_version_id}} - parameter String
 - parameter
Data String - The regional parameter data.
 - parameter
Version StringId  - project String
 - update
Time String - The time at which the Regional Parameter Version was last updated.
 
Package Details
- Repository
 - Google Cloud (GCP) Classic pulumi/pulumi-gcp
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
google-betaTerraform Provider.