Google Cloud v8.27.0 published on Thursday, Apr 17, 2025 by Pulumi
gcp.parametermanager.getRegionalParameter
Explore with Pulumi AI
Use this data source to get information about a Parameter Manager Regional Parameter.
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
 - Parameter
Id 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
 - Parameter
Id 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
 - parameter
Id 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
 - parameter
Id 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
 - parameter
Id 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:
- Create
Time string - Effective
Labels Dictionary<string, string> - Format string
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Kms
Key string - Labels Dictionary<string, string>
 - Location string
 - Name string
 - Parameter
Id string - Policy
Members List<GetRegional Parameter Policy Member>  - Pulumi
Labels Dictionary<string, string> - Update
Time string - Project string
 
- Create
Time string - Effective
Labels map[string]string - Format string
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Kms
Key string - Labels map[string]string
 - Location string
 - Name string
 - Parameter
Id string - Policy
Members []GetRegional Parameter Policy Member  - Pulumi
Labels map[string]string - Update
Time string - Project string
 
- create
Time String - effective
Labels Map<String,String> - format String
 - id String
 - The provider-assigned unique ID for this managed resource.
 - kms
Key String - labels Map<String,String>
 - location String
 - name String
 - parameter
Id String - policy
Members List<GetRegional Parameter Policy Member>  - pulumi
Labels Map<String,String> - update
Time String - project String
 
- create
Time string - effective
Labels {[key: string]: string} - format string
 - id string
 - The provider-assigned unique ID for this managed resource.
 - kms
Key string - labels {[key: string]: string}
 - location string
 - name string
 - parameter
Id string - policy
Members GetRegional Parameter Policy Member[]  - pulumi
Labels {[key: string]: string} - update
Time string - project string
 
- create_
time str - effective_
labels Mapping[str, str] - format str
 - id str
 - The provider-assigned unique ID for this managed resource.
 - kms_
key str - 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
 
- create
Time String - effective
Labels Map<String> - format String
 - id String
 - The provider-assigned unique ID for this managed resource.
 - kms
Key String - labels Map<String>
 - location String
 - name String
 - parameter
Id String - policy
Members List<Property Map> - pulumi
Labels Map<String> - update
Time String - project String
 
Supporting Types
GetRegionalParameterPolicyMember    
- Iam
Policy 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}}'
 - Iam
Policy 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 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}}'
 - Iam
Policy 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 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}}'
 - iam
Policy 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 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}}'
 - iam
Policy 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}}'
 
- iam
Policy 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}}'
 - iam
Policy 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.