1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. parametermanager
  5. getRegionalParameterVersion
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

gcp.parametermanager.getRegionalParameterVersion

Explore with Pulumi AI

Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi

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",
});
Copy
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")
Copy
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, &parametermanager.LookupRegionalParameterVersionArgs{
			Parameter:          "test-regional-parameter",
			ParameterVersionId: "test-regional-parameter-version",
			Location:           pulumi.StringRef("us-central1"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  basic:
    fn::invoke:
      function: gcp:parametermanager:getRegionalParameterVersion
      arguments:
        parameter: test-regional-parameter
        parameterVersionId: test-regional-parameter-version
        location: us-central1
Copy

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>
Copy
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]
Copy
func LookupRegionalParameterVersion(ctx *Context, args *LookupRegionalParameterVersionArgs, opts ...InvokeOption) (*LookupRegionalParameterVersionResult, error)
func LookupRegionalParameterVersionOutput(ctx *Context, args *LookupRegionalParameterVersionOutputArgs, opts ...InvokeOption) LookupRegionalParameterVersionResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetRegionalParameterVersionResult> getRegionalParameterVersion(GetRegionalParameterVersionArgs args, InvokeOptions options)
public static Output<GetRegionalParameterVersionResult> getRegionalParameterVersion(GetRegionalParameterVersionArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:parametermanager/getRegionalParameterVersion:getRegionalParameterVersion
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Parameter This property is required. 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}}.
ParameterVersionId This property is required. string
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 This property is required. 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}}.
ParameterVersionId This property is required. string
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 This property is required. 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}}.
parameterVersionId This property is required. String
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 This property is required. 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}}.
parameterVersionId This property is required. string
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 This property is required. 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_id This property is required. str
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 This property is required. 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}}.
parameterVersionId This property is required. String
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:

CreateTime 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.
KmsKeyVersion string
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
ParameterData string
The regional parameter data.
ParameterVersionId string
Project string
UpdateTime string
The time at which the Regional Parameter Version was last updated.
CreateTime 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.
KmsKeyVersion string
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
ParameterData string
The regional parameter data.
ParameterVersionId string
Project string
UpdateTime string
The time at which the Regional Parameter Version was last updated.
createTime 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.
kmsKeyVersion String
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
parameterData String
The regional parameter data.
parameterVersionId String
project String
updateTime String
The time at which the Regional Parameter Version was last updated.
createTime 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.
kmsKeyVersion string
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
parameterData string
The regional parameter data.
parameterVersionId string
project string
updateTime 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_version str
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_id str
project str
update_time str
The time at which the Regional Parameter Version was last updated.
createTime 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.
kmsKeyVersion String
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
parameterData String
The regional parameter data.
parameterVersionId String
project String
updateTime 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-beta Terraform Provider.
Google Cloud v8.26.0 published on Thursday, Apr 10, 2025 by Pulumi