1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. parametermanager
  5. getParameters
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

gcp.parametermanager.getParameters

Explore with Pulumi AI

Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";

const parameters = gcp.parametermanager.getParameters({});
Copy
import pulumi
import pulumi_gcp as gcp

parameters = gcp.parametermanager.get_parameters()
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.GetParameters(ctx, &parametermanager.GetParametersArgs{}, 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 parameters = Gcp.ParameterManager.GetParameters.Invoke();

});
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.GetParametersArgs;
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 parameters = ParametermanagerFunctions.getParameters();

    }
}
Copy
variables:
  parameters:
    fn::invoke:
      function: gcp:parametermanager:getParameters
      arguments: {}
Copy

Using getParameters

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 getParameters(args: GetParametersArgs, opts?: InvokeOptions): Promise<GetParametersResult>
function getParametersOutput(args: GetParametersOutputArgs, opts?: InvokeOptions): Output<GetParametersResult>
Copy
def get_parameters(filter: Optional[str] = None,
                   project: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetParametersResult
def get_parameters_output(filter: Optional[pulumi.Input[str]] = None,
                   project: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetParametersResult]
Copy
func GetParameters(ctx *Context, args *GetParametersArgs, opts ...InvokeOption) (*GetParametersResult, error)
func GetParametersOutput(ctx *Context, args *GetParametersOutputArgs, opts ...InvokeOption) GetParametersResultOutput
Copy

> Note: This function is named GetParameters in the Go SDK.

public static class GetParameters 
{
    public static Task<GetParametersResult> InvokeAsync(GetParametersArgs args, InvokeOptions? opts = null)
    public static Output<GetParametersResult> Invoke(GetParametersInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetParametersResult> getParameters(GetParametersArgs args, InvokeOptions options)
public static Output<GetParametersResult> getParameters(GetParametersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: gcp:parametermanager/getParameters:getParameters
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
Project string
The ID of the project.
Filter string
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
Project string
The ID of the project.
filter String
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
project String
The ID of the project.
filter string
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
project string
The ID of the project.
filter str
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
project str
The ID of the project.
filter String
Filter string, adhering to the rules in List-operation filtering. List only parameters matching the filter. If filter is empty, all parameters are listed.
project String
The ID of the project.

getParameters Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Parameters List<GetParametersParameter>
A list of parameters matching the filter. Structure is defined below.
Project string
The ID of the project in which the resource belongs.
Filter string
Id string
The provider-assigned unique ID for this managed resource.
Parameters []GetParametersParameter
A list of parameters matching the filter. Structure is defined below.
Project string
The ID of the project in which the resource belongs.
Filter string
id String
The provider-assigned unique ID for this managed resource.
parameters List<GetParametersParameter>
A list of parameters matching the filter. Structure is defined below.
project String
The ID of the project in which the resource belongs.
filter String
id string
The provider-assigned unique ID for this managed resource.
parameters GetParametersParameter[]
A list of parameters matching the filter. Structure is defined below.
project string
The ID of the project in which the resource belongs.
filter string
id str
The provider-assigned unique ID for this managed resource.
parameters Sequence[GetParametersParameter]
A list of parameters matching the filter. Structure is defined below.
project str
The ID of the project in which the resource belongs.
filter str
id String
The provider-assigned unique ID for this managed resource.
parameters List<Property Map>
A list of parameters matching the filter. Structure is defined below.
project String
The ID of the project in which the resource belongs.
filter String

Supporting Types

GetParametersParameter

CreateTime This property is required. string
The time at which the parameter was created.
EffectiveLabels This property is required. Dictionary<string, string>
Format This property is required. string
The format type of the parameter.
Labels This property is required. Dictionary<string, string>
The labels assigned to the parameter.
Name This property is required. string
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
ParameterId This property is required. string
The unique name of the resource.
PolicyMembers This property is required. List<GetParametersParameterPolicyMember>
An object containing a unique resource identity tied to the parameter. Structure is documented below.
Project This property is required. string
The ID of the project.
PulumiLabels This property is required. Dictionary<string, string>
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime This property is required. string
The time at which the parameter was updated.
CreateTime This property is required. string
The time at which the parameter was created.
EffectiveLabels This property is required. map[string]string
Format This property is required. string
The format type of the parameter.
Labels This property is required. map[string]string
The labels assigned to the parameter.
Name This property is required. string
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
ParameterId This property is required. string
The unique name of the resource.
PolicyMembers This property is required. []GetParametersParameterPolicyMember
An object containing a unique resource identity tied to the parameter. Structure is documented below.
Project This property is required. string
The ID of the project.
PulumiLabels This property is required. map[string]string
The combination of labels configured directly on the resource and default labels configured on the provider.
UpdateTime This property is required. string
The time at which the parameter was updated.
createTime This property is required. String
The time at which the parameter was created.
effectiveLabels This property is required. Map<String,String>
format This property is required. String
The format type of the parameter.
labels This property is required. Map<String,String>
The labels assigned to the parameter.
name This property is required. String
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
parameterId This property is required. String
The unique name of the resource.
policyMembers This property is required. List<GetParametersParameterPolicyMember>
An object containing a unique resource identity tied to the parameter. Structure is documented below.
project This property is required. String
The ID of the project.
pulumiLabels This property is required. Map<String,String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime This property is required. String
The time at which the parameter was updated.
createTime This property is required. string
The time at which the parameter was created.
effectiveLabels This property is required. {[key: string]: string}
format This property is required. string
The format type of the parameter.
labels This property is required. {[key: string]: string}
The labels assigned to the parameter.
name This property is required. string
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
parameterId This property is required. string
The unique name of the resource.
policyMembers This property is required. GetParametersParameterPolicyMember[]
An object containing a unique resource identity tied to the parameter. Structure is documented below.
project This property is required. string
The ID of the project.
pulumiLabels This property is required. {[key: string]: string}
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime This property is required. string
The time at which the parameter was updated.
create_time This property is required. str
The time at which the parameter was created.
effective_labels This property is required. Mapping[str, str]
format This property is required. str
The format type of the parameter.
labels This property is required. Mapping[str, str]
The labels assigned to the parameter.
name This property is required. str
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
parameter_id This property is required. str
The unique name of the resource.
policy_members This property is required. Sequence[GetParametersParameterPolicyMember]
An object containing a unique resource identity tied to the parameter. Structure is documented below.
project This property is required. str
The ID of the project.
pulumi_labels This property is required. Mapping[str, str]
The combination of labels configured directly on the resource and default labels configured on the provider.
update_time This property is required. str
The time at which the parameter was updated.
createTime This property is required. String
The time at which the parameter was created.
effectiveLabels This property is required. Map<String>
format This property is required. String
The format type of the parameter.
labels This property is required. Map<String>
The labels assigned to the parameter.
name This property is required. String
The resource name of the parameter. Format: projects/{{project}}/locations/global/parameters/{{parameter_id}}
parameterId This property is required. String
The unique name of the resource.
policyMembers This property is required. List<Property Map>
An object containing a unique resource identity tied to the parameter. Structure is documented below.
project This property is required. String
The ID of the project.
pulumiLabels This property is required. Map<String>
The combination of labels configured directly on the resource and default labels configured on the provider.
updateTime This property is required. String
The time at which the parameter was updated.

GetParametersParameterPolicyMember

IamPolicyNamePrincipal This property is required. string
AM 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}}
IamPolicyUidPrincipal This property is required. string
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}}
IamPolicyNamePrincipal This property is required. string
AM 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}}
IamPolicyUidPrincipal This property is required. string
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}}
iamPolicyNamePrincipal This property is required. String
AM 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}}
iamPolicyUidPrincipal This property is required. String
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}}
iamPolicyNamePrincipal This property is required. string
AM 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}}
iamPolicyUidPrincipal This property is required. string
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_name_principal This property is required. str
AM 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_uid_principal This property is required. str
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}}
iamPolicyNamePrincipal This property is required. String
AM 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}}
iamPolicyUidPrincipal This property is required. String
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-beta Terraform Provider.
Google Cloud v8.23.0 published on Monday, Mar 24, 2025 by Pulumi