- NAME
-
- gcloud alpha sql ssl customer-managed-certs update - create or update a customer managed certificate bundle for a Cloud SQL instance
- SYNOPSIS
-
-
gcloud alpha sql ssl customer-managed-certs updateBUNDLE--instance=INSTANCE,-iINSTANCE[--allow-missing] [--async] [--client-cert-file=CLIENT_CERT_FILE] [--client-key-file=CLIENT_KEY_FILE] [--endpoint-mode=ENDPOINT_MODE] [--intent=INTENT; default="PG_LOGICAL"] [--primary-dns=PRIMARY_DNS] [--primary-ipv4-address=PRIMARY_IPV4_ADDRESS] [--server-ca-file=SERVER_CA_FILE] [--update-mask=UPDATE_MASK] [GCLOUD_WIDE_FLAG …]
-
- DESCRIPTION
-
(ALPHA)Create or update a customer managed certificate bundle for a Cloud SQL instance. - EXAMPLES
-
To create or replace a customer managed certificate bundle
bundle1for the Cloud SQL instancemy-instance, run:gcloud alpha sql ssl customer-managed-certs update bundle1 --instance=my-instance --allow-missing --intent=PG_LOGICAL --server-ca-file=/path/to/server_ca.pem --client-cert-file=/path/to/client_cert.pem --client-key-file=/path/to/client_key.pem --primary-dns=primary.example.com --primary-ipv4-address=10.0.0.1To partially update the primary IPv4 address and client certificate of an existing bundle
bundle1formy-instance, run:gcloud alpha sql ssl customer-managed-certs update bundle1 --instance=my-instance --update-mask=primary_dns_record.ipv4_address,customer_managed_certificates --primary-ipv4-address=10.0.0.2 --client-cert-file=/path/to/new_client_cert.pem - POSITIONAL ARGUMENTS
-
BUNDLE-
Customer managed certificate bundle name. Constrained to
[a-zA-Z0-9]+with a maximum length of 10 characters.
- REQUIRED FLAGS
-
--instance=INSTANCE,-iINSTANCE- Cloud SQL instance ID.
- OPTIONAL FLAGS
-
--allow-missing-
If set, and the customer managed certificate bundle configuration is not found,
a new customer managed certificate bundle configuration will be created. In this
situation,
--update-maskis ignored. --async- Return immediately, without waiting for the operation in progress to complete.
--client-cert-file=CLIENT_CERT_FILE- Path to a PEM-encoded file containing the peer client certificate.
--client-key-file=CLIENT_KEY_FILE- Path to a PEM-encoded file containing the peer client private key.
--endpoint-mode=ENDPOINT_MODE-
Specifies endpoint mode for a given command. Regional endpoints provide enhanced
data residency and reliability by ensuring your request is handled entirely
within the specified Google Cloud region. This differs from global endpoints,
which may process parts of the request outside the target region. Overrides the
default
regional/endpoint_modeproperty value for this command invocation.ENDPOINT_MODEmust be one of:global- (Default) Use global rather than regional endpoints.
regional- Only use regional endpoints. An error will be raised if a regional endpoint is not available for a given command.
regional-preferred- Use regional endpoints when available, otherwise use global endpoints. Recommended for most users.
--intent=INTENT; default="PG_LOGICAL"-
Intent for the customer managed certificate bundle configuration.
INTENTmust be (only one value is supported):PG_LOGICAL. --primary-dns=PRIMARY_DNS- DNS name associated with the primary instance in a replication topology.
--primary-ipv4-address=PRIMARY_IPV4_ADDRESS- IPv4 address for the primary DNS name.
--server-ca-file=SERVER_CA_FILE- Path to a PEM-encoded file containing the peer server CA certificate.
--update-mask=UPDATE_MASK-
Comma-separated list of fields to be updated. Allowed values include:
*,intent,primary_dns_record,primary_dns_record.dns,primary_dns_record.ipv4_address, andcustomer_managed_certificates.
- GCLOUD WIDE FLAGS
-
These flags are available to all commands:
--access-token-file,--account,--billing-project,--configuration,--flags-file,--flatten,--format,--help,--impersonate-service-account,--log-http,--project,--quiet,--trace-token,--user-output-enabled,--verbosity.Run
$ gcloud helpfor details. - REGIONAL ENDPOINTS
-
This command supports regional endpoints. To use regional endpoints for this
command, use the
--endpoint-mode=regional-preferredflag. To use regional endpoints by default, run$ gcloud config set regional/endpoint_mode regional-preferred. - NOTES
-
This command is currently in alpha and might change without notice. If this
command fails with API permission errors despite specifying the correct project,
you might be trying to access an API with an invitation-only early access
allowlist. These variants are also available:
gcloud sql ssl customer-managed-certs updategcloud beta sql ssl customer-managed-certs update
gcloud alpha sql ssl customer-managed-certs update
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-11-03 UTC.
[null,null,["Last updated 2026-11-03 UTC."],[],[]]