gcloud database-migration connection-profiles create cloudsql
(CONNECTION_PROFILE
: --region
=REGION
) --source-id
=SOURCE_ID
--tier
=TIER
(--database-version
=DATABASE_VERSION
| --database-version-name
=DATABASE_VERSION_NAME
) [--activation-policy
=ACTIVATION_POLICY
] [--allocated-ip-range
=ALLOCATED_IP_RANGE
] [--no-async
] [--authorized-networks
=NETWORK
,[NETWORK
,…]] [--no-auto-storage-increase
] [--availability-type
=AVAILABILITY_TYPE
] [--data-disk-size
=DATA_DISK_SIZE
] [--data-disk-type
=DATA_DISK_TYPE
] [--database-flags
=[FLAG
=VALUE
,…]] [--display-name
=DISPLAY_NAME
] [--edition
=EDITION
] [--no-enable-ip-v4
] [--labels
=[KEY
=VALUE
,…]] [--private-network
=PRIVATE_NETWORK
] [--provider
=PROVIDER
] [--require-ssl
] [--role
=ROLE
] [--root-password
=ROOT_PASSWORD
] [--secondary-zone
=SECONDARY_ZONE
] [--storage-auto-resize-limit
=STORAGE_AUTO_RESIZE_LIMIT
] [--user-labels
=[KEY
=VALUE
,…]] [--zone
=ZONE
] [--cmek-key
=CMEK_KEY
: --cmek-keyring
=CMEK_KEYRING
--cmek-project
=CMEK_PROJECT
] [GCLOUD_WIDE_FLAG …
]
gcloud database-migration connection-profiles create cloudsql my-profile --region=us-central1 --database-version=MYSQL_5_6 --source-id=cp1 --tier=db-n1-standard-1
To create a connection profile for Cloud SQL and a Cloud SQL replica with database version PostgreSQL 10:
gcloud database-migration connection-profiles create cloudsql my-profile --region=us-central1 --database-version=POSTGRES_10 --source-id=cp1 --tier=db-custom-1-3840 --zone=us-central1-a
To set the project
attribute:
connection_profile
on the command line with a fully specified name;--project
on the command line;core/project
.This must be specified.
CONNECTION_PROFILE
To set the connection_profile
attribute:
connection_profile
on the command line.This positional argument must be specified if any of the other arguments in this group are specified.
--region
=REGION
To set the region
attribute:
connection_profile
on the command line with a fully specified name;--region
on the command line.To set the project
attribute:
--source-id
on the command line with a fully specified name;--project
on the command line;core/project
.To set the region
attribute:
--source-id
on the command line with a fully specified name;--region
on the command line.This must be specified.
--source-id
=SOURCE_ID
To set the connection_profile
attribute:
--source-id
on the command line.--tier
=TIER
db-n1-standard-1
(MySQL instances) or db-custom-1-3840
(PostgreSQL instances). For more information, see Cloud SQL Instance Settings.
--database-version
=DATABASE_VERSION
DATABASE_VERSION
must be one of: MYSQL_5_7
, MYSQL_5_6
, MYSQL_8_0
, MYSQL_8_0_18
, MYSQL_8_0_26
, MYSQL_8_0_27
, MYSQL_8_0_28
, MYSQL_8_0_30
, MYSQL_8_0_31
, MYSQL_8_0_32
, MYSQL_8_0_33
, MYSQL_8_0_34
, MYSQL_8_0_35
, MYSQL_8_0_36
, MYSQL_8_0_37
, MYSQL_8_4
, POSTGRES_9_6
, POSTGRES_10
, POSTGRES_11
, POSTGRES_12
, POSTGRES_13
, POSTGRES_14
, POSTGRES_15
, POSTGRES_16
.
--database-version-name
=DATABASE_VERSION_NAME
--activation-policy
=ACTIVATION_POLICY
ALWAYS: The instance is on, and remains so even in the absence of connection requests.
NEVER: The instance is off; it is not activated, even if a connection request arrives.
ACTIVATION_POLICY
must be one of: ALWAYS
, NEVER
.
--allocated-ip-range
=ALLOCATED_IP_RANGE
--no-async
--auto-storage-increase
--no-auto-storage-increase
to disable.
--availability-type
=AVAILABILITY_TYPE
AVAILABILITY_TYPE
must be one of: REGIONAL
, ZONAL
.
--data-disk-size
=DATA_DISK_SIZE
--data-disk-type
=DATA_DISK_TYPE
DATA_DISK_TYPE
must be one of: PD_SSD
, PD_HDD
.
--database-flags
=[FLAG
=VALUE
,…]
skip_grant_tables=
. Use on/off values for booleans. View the Instance Resource API for allowed flags. (e.g., --database-flags max_allowed_packet=55555 skip_grant_tables=,log_output=1
).
--display-name
=DISPLAY_NAME
--edition
=EDITION
EDITION
must be one of:
enterprise
enterprise-plus
--enable-ip-v4
--no-enable-ip-v4
to disable.
--labels
=[KEY
=VALUE
,…]
Keys must start with a lowercase character and contain only hyphens (-
), underscores (_
), lowercase characters, and numbers. Values must contain only hyphens (-
), underscores (_
), lowercase characters, and numbers.
--private-network
=PRIVATE_NETWORK
--provider
=PROVIDER
PROVIDER
must be one of: RDS
, CLOUDSQL
.
--require-ssl
--role
=ROLE
ROLE
must be one of: SOURCE
, DESTINATION
.
--root-password
=ROOT_PASSWORD
--secondary-zone
=SECONDARY_ZONE
--storage-auto-resize-limit
=STORAGE_AUTO_RESIZE_LIMIT
--user-labels
=[KEY
=VALUE
,…]
--zone
=ZONE
To set the region
attribute:
--cmek-key
on the command line with a fully specified name.--cmek-key
=CMEK_KEY
To set the cmek-key
attribute:
--cmek-key
on the command line.This flag argument must be specified if any of the other arguments in this group are specified.
--cmek-keyring
=CMEK_KEYRING
To set the cmek-keyring
attribute:
--cmek-key
on the command line with a fully specified name;--cmek-keyring
on the command line.--cmek-project
=CMEK_PROJECT
To set the cmek-project
attribute:
--cmek-key
on the command line with a fully specified name;--cmek-project
on the command line.--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 help
for details.
gcloud alpha database-migration connection-profiles create cloudsql
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4