Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.parametermanager.getRegionalParameter
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const regParameterDatasource = gcp.parametermanager.getRegionalParameter({
    parameterId: "foobar",
    location: "us-central1",
});
import pulumi
import pulumi_gcp as gcp
reg_parameter_datasource = gcp.parametermanager.get_regional_parameter(parameter_id="foobar",
    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.LookupRegionalParameter(ctx, ¶metermanager.LookupRegionalParameterArgs{
			ParameterId: "foobar",
			Location:    "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 regParameterDatasource = Gcp.ParameterManager.GetRegionalParameter.Invoke(new()
    {
        ParameterId = "foobar",
        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.GetRegionalParameterArgs;
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 regParameterDatasource = ParametermanagerFunctions.getRegionalParameter(GetRegionalParameterArgs.builder()
            .parameterId("foobar")
            .location("us-central1")
            .build());
    }
}
variables:
  regParameterDatasource:
    fn::invoke:
      function: gcp:parametermanager:getRegionalParameter
      arguments:
        parameterId: foobar
        location: us-central1
Using getRegionalParameter
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 getRegionalParameter(args: GetRegionalParameterArgs, opts?: InvokeOptions): Promise<GetRegionalParameterResult>
function getRegionalParameterOutput(args: GetRegionalParameterOutputArgs, opts?: InvokeOptions): Output<GetRegionalParameterResult>def get_regional_parameter(location: Optional[str] = None,
                           parameter_id: Optional[str] = None,
                           project: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetRegionalParameterResult
def get_regional_parameter_output(location: Optional[pulumi.Input[str]] = None,
                           parameter_id: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetRegionalParameterResult]func LookupRegionalParameter(ctx *Context, args *LookupRegionalParameterArgs, opts ...InvokeOption) (*LookupRegionalParameterResult, error)
func LookupRegionalParameterOutput(ctx *Context, args *LookupRegionalParameterOutputArgs, opts ...InvokeOption) LookupRegionalParameterResultOutput> Note: This function is named LookupRegionalParameter in the Go SDK.
public static class GetRegionalParameter 
{
    public static Task<GetRegionalParameterResult> InvokeAsync(GetRegionalParameterArgs args, InvokeOptions? opts = null)
    public static Output<GetRegionalParameterResult> Invoke(GetRegionalParameterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRegionalParameterResult> getRegionalParameter(GetRegionalParameterArgs args, InvokeOptions options)
public static Output<GetRegionalParameterResult> getRegionalParameter(GetRegionalParameterArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:parametermanager/getRegionalParameter:getRegionalParameter
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Location string
- The location of the regional parameter. eg us-central1
- ParameterId string
- The name of the regional parameter.
- Project string
- The ID of the project in which the resource belongs.
- Location string
- The location of the regional parameter. eg us-central1
- ParameterId string
- The name of the regional parameter.
- Project string
- The ID of the project in which the resource belongs.
- location String
- The location of the regional parameter. eg us-central1
- parameterId String
- The name of the regional parameter.
- project String
- The ID of the project in which the resource belongs.
- location string
- The location of the regional parameter. eg us-central1
- parameterId string
- The name of the regional parameter.
- project string
- The ID of the project in which the resource belongs.
- location str
- The location of the regional parameter. eg us-central1
- parameter_id str
- The name of the regional parameter.
- project str
- The ID of the project in which the resource belongs.
- location String
- The location of the regional parameter. eg us-central1
- parameterId String
- The name of the regional parameter.
- project String
- The ID of the project in which the resource belongs.
getRegionalParameter Result
The following output properties are available:
- CreateTime string
- EffectiveLabels Dictionary<string, string>
- Format string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- Location string
- Name string
- ParameterId string
- PolicyMembers List<GetRegional Parameter Policy Member> 
- PulumiLabels Dictionary<string, string>
- UpdateTime string
- Project string
- CreateTime string
- EffectiveLabels map[string]string
- Format string
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- Location string
- Name string
- ParameterId string
- PolicyMembers []GetRegional Parameter Policy Member 
- PulumiLabels map[string]string
- UpdateTime string
- Project string
- createTime String
- effectiveLabels Map<String,String>
- format String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- location String
- name String
- parameterId String
- policyMembers List<GetRegional Parameter Policy Member> 
- pulumiLabels Map<String,String>
- updateTime String
- project String
- createTime string
- effectiveLabels {[key: string]: string}
- format string
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- location string
- name string
- parameterId string
- policyMembers GetRegional Parameter Policy Member[] 
- pulumiLabels {[key: string]: string}
- updateTime string
- project string
- create_time str
- effective_labels Mapping[str, str]
- format str
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- location str
- name str
- parameter_id str
- policy_members Sequence[GetRegional Parameter Policy Member] 
- pulumi_labels Mapping[str, str]
- update_time str
- project str
- createTime String
- effectiveLabels Map<String>
- format String
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- location String
- name String
- parameterId String
- policyMembers List<Property Map>
- pulumiLabels Map<String>
- updateTime String
- project String
Supporting Types
GetRegionalParameterPolicyMember    
- IamPolicy stringName Principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- IamPolicy stringUid Principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
- IamPolicy stringName Principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- IamPolicy stringUid Principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
- iamPolicy StringName Principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- iamPolicy StringUid Principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
- iamPolicy stringName Principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- iamPolicy stringUid Principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
- iam_policy_ strname_ principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- iam_policy_ struid_ principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
- iamPolicy StringName Principal 
- IAM 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 new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/name/locations/{{location}}/parameters/{{parameter_id}}'
- iamPolicy StringUid Principal 
- IAM policy binding member referring to a Google Cloud resource by system-assigned unique identifier. If a resource is deleted and recreated with the same name, the binding will not be applicable to the new resource. Format: 'principal://parametermanager.googleapis.com/projects/{{project}}/uid/locations/{{location}}/parameters/{{uid}}'
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.