Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
Use this data source to get information about a Parameter Manager Parameter.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const parameterDatasource = gcp.parametermanager.getParameter({
parameterId: "foobar",
});
import pulumi
import pulumi_gcp as gcp
parameter_datasource = gcp.parametermanager.get_parameter(parameter_id="foobar")
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/parametermanager"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := parametermanager.LookupParameter(ctx, ¶metermanager.LookupParameterArgs{
ParameterId: "foobar",
}, 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 parameterDatasource = Gcp.ParameterManager.GetParameter.Invoke(new()
{
ParameterId = "foobar",
});
});
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.GetParameterArgs;
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 parameterDatasource = ParametermanagerFunctions.getParameter(GetParameterArgs.builder()
.parameterId("foobar")
.build());
}
}
variables:
parameterDatasource:
fn::invoke:
function: gcp:parametermanager:getParameter
arguments:
parameterId: foobar
Using getParameter
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 getParameter(args: GetParameterArgs, opts?: InvokeOptions): Promise<GetParameterResult>
function getParameterOutput(args: GetParameterOutputArgs, opts?: InvokeOptions): Output<GetParameterResult>def get_parameter(parameter_id: Optional[str] = None,
project: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetParameterResult
def get_parameter_output(parameter_id: Optional[pulumi.Input[str]] = None,
project: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetParameterResult]func LookupParameter(ctx *Context, args *LookupParameterArgs, opts ...InvokeOption) (*LookupParameterResult, error)
func LookupParameterOutput(ctx *Context, args *LookupParameterOutputArgs, opts ...InvokeOption) LookupParameterResultOutput> Note: This function is named LookupParameter in the Go SDK.
public static class GetParameter
{
public static Task<GetParameterResult> InvokeAsync(GetParameterArgs args, InvokeOptions? opts = null)
public static Output<GetParameterResult> Invoke(GetParameterInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetParameterResult> getParameter(GetParameterArgs args, InvokeOptions options)
public static Output<GetParameterResult> getParameter(GetParameterArgs args, InvokeOptions options)
fn::invoke:
function: gcp:parametermanager/getParameter:getParameter
arguments:
# arguments dictionaryThe following arguments are supported:
- Parameter
Id string - The name of the parameter.
- Project string
- The ID of the project in which the resource belongs.
- Parameter
Id string - The name of the parameter.
- Project string
- The ID of the project in which the resource belongs.
- parameter
Id String - The name of the parameter.
- project String
- The ID of the project in which the resource belongs.
- parameter
Id string - The name of the parameter.
- project string
- The ID of the project in which the resource belongs.
- parameter_
id str - The name of the parameter.
- project str
- The ID of the project in which the resource belongs.
- parameter
Id String - The name of the parameter.
- project String
- The ID of the project in which the resource belongs.
getParameter 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>
- Name string
- Parameter
Id string - Policy
Members List<GetParameter 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
- Name string
- Parameter
Id string - Policy
Members []GetParameter 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>
- name String
- parameter
Id String - policy
Members List<GetParameter 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}
- name string
- parameter
Id string - policy
Members GetParameter 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]
- name str
- parameter_
id str - policy_
members Sequence[GetParameter 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>
- name String
- parameter
Id String - policy
Members List<Property Map> - pulumi
Labels Map<String> - update
Time String - project String
Supporting Types
GetParameterPolicyMember
- 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/global/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/global/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/global/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/global/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/global/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/global/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/global/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/global/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/global/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/global/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/global/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/global/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.
Viewing docs for Google Cloud v9.16.0
published on Thursday, Mar 19, 2026 by Pulumi
published on Thursday, Mar 19, 2026 by Pulumi
