This page describes how you can retrieve a list of all the versions of a parameter created over time and view the metadata of a specific version.
A parameter version represents the specific setting or configuration value that the parameter holds at a given point in time. While a parameter acts as a metadata container, the version contains the actual data payload. By looking at the list of versions, you can see how a parameter has changed over time and who made the change. This helps with auditing and troubleshooting. For example, if you're experiencing issues with your current configuration, examining disabled versions can help you understand what settings were previously used and potentially identify if a recent change caused the problem.
The parameter version details include its name, value, state, and creation and update timestamps.
Required roles
To get the permissions that
you need to list parameter versions,
ask your administrator to grant you the Parameter Manager Parameter Viewer
( roles/parametermanager.parameterViewer
)
IAM role
on the parameter, project, folder, or organization.
For more information about granting roles, see Manage access to projects, folders, and organizations
.
You might also be able to get the required permissions through custom roles or other predefined roles .
List all parameter versions
To list all the parameter versions associated with a parameter, use one of the following methods:
Global parameters
Console
-
In the Google Cloud console, go to the Secret Manager page.
-
Click Parameter Manager to go to the Parameter Manager page. You'll see the list of parameters for that project.
-
Click the parameter name to view its versions.
The parameter details page opens with the Versions tab in focus where you can see all the versions of the selected parameter.
gcloud
Before using any of the command data below, make the following replacements:
- PARAMETER_ID : the name of the parameter
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = global
Windows (PowerShell)
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = global
Windows (cmd.exe)
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = global
You should receive a response similar to the following:
NAME DISABLED CREATE_TIME UPDATE_TIME projects/production-1/locations/global/parameters/app_config/versions/configv3 2024-11-14T10:07:12.883361876Z 2024-11-14T10:07:13.331806596Z
REST
Before using any of the request data, make the following replacements:
- PROJECT_ID : the Google Cloud project ID
- PARAMETER_ID : the name of the parameter
HTTP method and URL:
GET https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions
Request JSON body:
{}
To send your request, choose one of these options:
curl
Save the request body in a file named request.json
,
and execute the following command:
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions"
PowerShell
Save the request body in a file named request.json
,
and execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method GET `
-Headers $headers `
-ContentType: "application/json; charset=utf-8" `
-InFile request.json `
-Uri "https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions" | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{
"parameterVersions": [
{
"name": "projects/production-1/locations/global/parameters/app_config/versions/configv3",
"createTime": "2024-11-12T10:22:17.704800878Z",
"updateTime": "2024-11-12T11:08:24.173199506Z",
"disabled": true
},
{
"name": "projects/production-1/locations/global/parameters/app_config/versions/configv2",
"createTime": "2024-11-12T10:26:44.168165094Z",
"updateTime": "2024-11-12T10:26:44.483145675Z"
}
]
}
C#
To run this code, first set up a C# development environment and install the Parameter Manager C# SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Go
To run this code, first set up a Go development environment and install the Parameter Manager Go SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Java
To run this code, first set up a Java development environment and install the Parameter Manager Java SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Node.js
To run this code, first set up a Node.js development environment and install the Parameter Manager Node.js SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
PHP
To run this code, first learn about using PHP on Google Cloud and install the Parameter Manager PHP SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Ruby
To run this code, first set up a Ruby development environment and install the Parameter Manager Ruby SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Regional parameters
Console
-
In the Google Cloud console, go to the Secret Manager page.
-
Click Parameter Manager to go to the Parameter Manager page. You'll see the list of parameters for that project.
-
Click the parameter name to view its versions.
The parameter details page opens with the Versions tab in focus where you can see all the versions of the selected parameter.
gcloud
Before using any of the command data below, make the following replacements:
- PARAMETER_ID : the name of the parameter
- LOCATION : the Google Cloud location of the parameter
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = LOCATION
Windows (PowerShell)
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = LOCATION
Windows (cmd.exe)
gcloud parametermanager parameters versions list --parameter = PARAMETER_ID --location = LOCATION
You should receive a response similar to the following:
NAME DISABLED CREATE_TIME UPDATE_TIME projects/production-1/locations/us-central1/parameters/app_config/versions/configv3 2024-11-14T10:07:12.883361876Z 2024-11-14T10:07:13.331806596Z
REST
Before using any of the request data, make the following replacements:
- LOCATION : the Google Cloud location of the parameter
- PROJECT_ID : the Google Cloud project ID
- PARAMETER_ID : the name of the parameter
HTTP method and URL:
GET https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions
Request JSON body:
{}
To send your request, choose one of these options:
curl
Save the request body in a file named request.json
,
and execute the following command:
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions"
PowerShell
Save the request body in a file named request.json
,
and execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method GET `
-Headers $headers `
-ContentType: "application/json; charset=utf-8" `
-InFile request.json `
-Uri "https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions" | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{
"parameterVersions": [
{
"name": "projects/production-1/locations/us-central1/parameters/app_config/versions/configv3",
"createTime": "2024-10-30T05:27:51.206825427Z",
"updateTime": "2024-10-30T05:27:51.442194863Z"
}
]
}
C#
To run this code, first set up a C# development environment and install the Parameter Manager C# SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Go
To run this code, first set up a Go development environment and install the Parameter Manager Go SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Java
To run this code, first set up a Java development environment and install the Parameter Manager Java SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Node.js
To run this code, first set up a Node.js development environment and install the Parameter Manager Node.js SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
PHP
To run this code, first learn about using PHP on Google Cloud and install the Parameter Manager PHP SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Ruby
To run this code, first set up a Ruby development environment and install the Parameter Manager Ruby SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
View parameter version details
To view the details of a parameter version, use one of the following methods:
Global parameters
Console
-
In the Google Cloud console, go to the Secret Manager page.
-
Click Parameter Manager to go to the Parameter Manager page. You'll see the list of parameters for that project.
-
Click the parameter name to access its versions.
The parameter details page opens with the Versions tab in focus where you can see all the versions of the selected parameter. For each version, the version ID and its metadata is also displayed in the table.
-
Certain parameter versions contain secret values. To inspect the raw parameter payload before secret substitution, select the version and then click View payload from the Actions menu.
Viewing the payload lets you verify the parameter's structure and content before secret substitution. This helps you check the parameter configuration and understand its structure.
gcloud
Before using any of the command data below, make the following replacements:
- PARAMETER_VERSION_ID : the ID of the parameter version
- PARAMETER_ID : the name of the parameter
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = global
Windows (PowerShell)
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = global
Windows (cmd.exe)
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = global
You should receive a response similar to the following:
createTime: '2024-11-14T10:07:12.883361876Z' name: projects/production-1/locations/global/parameters/app_config/versions/configv3 payload: data: YWJj updateTime: '2024-11-14T10:07:13.331806596Z'
REST
Before using any of the request data, make the following replacements:
- PROJECT_ID : the Google Cloud project ID
- PARAMETER_ID : the name of the parameter
- PARAMETER_VERSION_ID : the ID of the parameter version
HTTP method and URL:
GET https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID
Request JSON body:
{}
To send your request, choose one of these options:
curl
Save the request body in a file named request.json
,
and execute the following command:
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID "
PowerShell
Save the request body in a file named request.json
,
and execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method GET `
-Headers $headers `
-ContentType: "application/json; charset=utf-8" `
-InFile request.json `
-Uri "https://parametermanager.googleapis.com/v1/projects/ PROJECT_ID /locations/global/parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID " | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{
"name": "projects/production-1/locations/global/parameters/app_config/versions/configv1",
"createTime": "2024-10-16T03:08:42.914611506Z",
"updateTime": "2024-10-16T03:08:44.530493212Z",
"payload": {
"data": "cHJvamVjdDoNCiAgZGlzcGxheV9uYW1lOiBQTSBCYW5rDQogIGxvY2FsZTogZW4tVVMNCiAgcG9ydDogODA4MA0KICBkYl9wYXNzd29yZDogX19SRUZfXygiLy9zZWNyZXRtYW5hZ2VyLmdvb2dsZWFwaXMuY29tL3Byb2plY3RzL2FjbS1zYW1wbGUvc2VjcmV0cy9kYl9wYXNzd29yZC92ZXJzaW9ucy8xIikNCiAgbWFza19zZW5zaXRpdmVfZmllbGRzOiBmYWxzZQ=="
}
}
C#
To run this code, first set up a C# development environment and install the Parameter Manager C# SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Go
To run this code, first set up a Go development environment and install the Parameter Manager Go SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Java
To run this code, first set up a Java development environment and install the Parameter Manager Java SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Node.js
To run this code, first set up a Node.js development environment and install the Parameter Manager Node.js SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
PHP
To run this code, first learn about using PHP on Google Cloud and install the Parameter Manager PHP SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Ruby
To run this code, first set up a Ruby development environment and install the Parameter Manager Ruby SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Regional parameters
Console
-
In the Google Cloud console, go to the Secret Manager page.
-
Click Parameter Manager to go to the Parameter Manager page. You'll see the list of parameters for that project.
-
Click the parameter name to access its versions.
The parameter details page opens with the Versions tab in focus where you can see all the versions of the selected parameter. For each version, the version ID and its metadata is also displayed in the table.
-
Certain parameter versions contain secret values. To inspect the raw parameter payload before secret substitution, select the version and then click View payload from the Actions menu.
Viewing the payload lets you verify the parameter's structure and content before secret substitution. This helps you check the parameter configuration and understand its structure.
gcloud
Before using any of the command data below, make the following replacements:
- PARAMETER_VERSION_ID : the ID of the parameter version
- PARAMETER_ID : the name of the parameter
- LOCATION : the Google Cloud location of the parameter
Execute the following command:
Linux, macOS, or Cloud Shell
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = LOCATION
Windows (PowerShell)
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = LOCATION
Windows (cmd.exe)
gcloud parametermanager parameters versions describe PARAMETER_VERSION_ID --parameter = PARAMETER_ID --location = LOCATION
You should receive a response similar to the following:
createTime: '2024-11-14T10:07:12.883361876Z' name: projects/production-1/locations/us-central1/parameters/app_config/versions/configv3 payload: data: YWJj updateTime: '2024-11-14T10:07:13.331806596Z'
REST
Before using any of the request data, make the following replacements:
- LOCATION : the Google Cloud location of the parameter
- PROJECT_ID : the Google Cloud project ID
- PARAMETER_ID : the name of the parameter
- PARAMETER_VERSION_ID : the ID of the parameter version
HTTP method and URL:
GET https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=FULL
Request JSON body:
{}
To send your request, choose one of these options:
curl
Save the request body in a file named request.json
,
and execute the following command:
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=FULL"
PowerShell
Save the request body in a file named request.json
,
and execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method GET `
-Headers $headers `
-ContentType: "application/json; charset=utf-8" `
-InFile request.json `
-Uri "https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=FULL" | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{
"name": "projects/production-1/locations/us-central1/parameters/app_config/versions/configv2",
"createTime": "2024-10-30T05:27:51.206825427Z",
"updateTime": "2024-10-30T05:27:51.442194863Z",
"payload": {
"data": "YTogYgo="
}
}
C#
To run this code, first set up a C# development environment and install the Parameter Manager C# SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Go
To run this code, first set up a Go development environment and install the Parameter Manager Go SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Java
To run this code, first set up a Java development environment and install the Parameter Manager Java SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Node.js
To run this code, first set up a Node.js development environment and install the Parameter Manager Node.js SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
PHP
To run this code, first learn about using PHP on Google Cloud and install the Parameter Manager PHP SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Python
To run this code, first set up a Python development environment and install the Parameter Manager Python SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Ruby
To run this code, first set up a Ruby development environment and install the Parameter Manager Ruby SDK . On Compute Engine or GKE, you must authenticate with the cloud-platform scope .
Additional information about the REST command
Use view=FULL
in your request to the Parameter Manager API when you
want the service to return the metadata of the parameter version and the
actual value that is stored in the version. To view just the version metadata
such as the name
, createTime
, and updateTime
, you can use view=BASIC
in your request. See the following example:
REST
Before using any of the request data, make the following replacements:
- LOCATION : the Google Cloud location of the parameter
- PROJECT_ID : the Google Cloud project ID
- PARAMETER_ID : the name of the parameter
- PARAMETER_VERSION_ID : the ID of the parameter version
HTTP method and URL:
GET https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=BASIC
Request JSON body:
{}
To send your request, choose one of these options:
curl
Save the request body in a file named request.json
,
and execute the following command:
curl -X GET \
-H "Authorization: Bearer $(gcloud auth print-access-token)" \
-H "Content-Type: application/json; charset=utf-8" \
-d @request.json \
"https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=BASIC"
PowerShell
Save the request body in a file named request.json
,
and execute the following command:
$cred = gcloud auth print-access-token
$headers = @{ "Authorization" = "Bearer $cred" }
Invoke-WebRequest `
-Method GET `
-Headers $headers `
-ContentType: "application/json; charset=utf-8" `
-InFile request.json `
-Uri "https://parametermanager. LOCATION .rep.googleapis.com/v1/projects/ PROJECT_ID /locations/ LOCATION /parameters/ PARAMETER_ID /versions/ PARAMETER_VERSION_ID ?view=BASIC" | Select-Object -Expand Content
You should receive a JSON response similar to the following:
{
"name": "projects/production-1/locations/us-central1/parameters/app_config/versions/configv2",
"createTime": "2024-10-30T05:38:58.682341106Z",
"updateTime": "2024-10-30T05:38:58.919983684Z"
}

