mirror of
https://github.com/imjasonh/gcloud-help
synced 2026-07-08 10:35:03 +00:00
277 lines
11 KiB
Text
277 lines
11 KiB
Text
|
|
NAME
|
||
|
|
gcloud oracle-database autonomous-databases create - create a new
|
||
|
|
AutonomousDatabase
|
||
|
|
|
||
|
|
SYNOPSIS
|
||
|
|
gcloud oracle-database autonomous-databases create
|
||
|
|
(AUTONOMOUS_DATABASE : --location=LOCATION) --cidr=CIDR
|
||
|
|
--network=NETWORK [--admin-password=ADMIN_PASSWORD] [--async]
|
||
|
|
[--database=DATABASE] [--display-name=DISPLAY_NAME]
|
||
|
|
[--labels=[LABELS,...]] [--request-id=REQUEST_ID]
|
||
|
|
[--properties-db-workload=PROPERTIES_DB_WORKLOAD
|
||
|
|
--properties-license-type=PROPERTIES_LICENSE_TYPE
|
||
|
|
: --properties-backup-retention-period-days=PROPERTIES_BACKUP_RETENTION_PERIOD_DAYS --properties-character-set=PROPERTIES_CHARACTER_SET --properties-compute-count=PROPERTIES_COMPUTE_COUNT --properties-cpu-core-count=PROPERTIES_CPU_CORE_COUNT --properties-customer-contacts=[email=EMAIL] --properties-data-storage-size-gb=PROPERTIES_DATA_STORAGE_SIZE_GB --properties-data-storage-size-tb=PROPERTIES_DATA_STORAGE_SIZE_TB --properties-db-edition=PROPERTIES_DB_EDITION --properties-db-version=PROPERTIES_DB_VERSION --properties-is-auto-scaling-enabled --properties-is-storage-auto-scaling-enabled --properties-maintenance-schedule-type=PROPERTIES_MAINTENANCE_SCHEDULE_TYPE --properties-mtls-connection-required --properties-n-character-set=PROPERTIES_N_CHARACTER_SET --properties-private-endpoint-ip=PROPERTIES_PRIVATE_ENDPOINT_IP --properties-private-endpoint-label=PROPERTIES_PRIVATE_ENDPOINT_LABEL --properties-secret-id=PROPERTIES_SECRET_ID --properties-vault-id=PROPERTIES_VAULT_ID]
|
||
|
|
[GCLOUD_WIDE_FLAG ...]
|
||
|
|
|
||
|
|
DESCRIPTION
|
||
|
|
Create a new AutonomousDatabase.
|
||
|
|
|
||
|
|
EXAMPLES
|
||
|
|
To create AutonomousDatabase with id my-instance in the location us-east4
|
||
|
|
with display-name my instance, network
|
||
|
|
projects/my-project/locations/global/networks/default, location us-east4,
|
||
|
|
database testadb, admin-password 123Abpassdord, cidr 12.2.0.0/24,
|
||
|
|
properties-compute-count 2, properties-db-version 19c,
|
||
|
|
properties-license-type LICENSE_INCLUDED, properties-db-workload DW. run:
|
||
|
|
|
||
|
|
$ gcloud oracle-database autonomous-databases create my-instance \
|
||
|
|
--location=us-east4 --display-name="my instance" \
|
||
|
|
--network=projects/my-project/locations/global/networks/\
|
||
|
|
default --cidr=12.2.0.0/24 --location=us-east4 --database=testadb \
|
||
|
|
--admin-password=123Abpassdord --properties-compute-count=2 \
|
||
|
|
--properties-db-version=19c \
|
||
|
|
--properties-license-type=LICENSE_INCLUDED \
|
||
|
|
--properties-db-workload=DW
|
||
|
|
|
||
|
|
POSITIONAL ARGUMENTS
|
||
|
|
AutonomousDatabase resource - Identifier. The name of the Autonomous
|
||
|
|
Database resource in the following format:
|
||
|
|
projects/{project}/locations/{region}/autonomousDatabases/{autonomous_database}
|
||
|
|
The arguments in this group can be used to specify the attributes of this
|
||
|
|
resource. (NOTE) Some attributes are not given arguments in this group but
|
||
|
|
can be set in other ways.
|
||
|
|
|
||
|
|
To set the project attribute:
|
||
|
|
◆ provide the argument autonomous_database on the command line with a
|
||
|
|
fully specified name;
|
||
|
|
◆ provide the argument --project on the command line;
|
||
|
|
◆ set the property core/project.
|
||
|
|
|
||
|
|
This must be specified.
|
||
|
|
|
||
|
|
AUTONOMOUS_DATABASE
|
||
|
|
ID of the autonomousDatabase or fully qualified identifier for the
|
||
|
|
autonomousDatabase.
|
||
|
|
|
||
|
|
To set the autonomous_database attribute:
|
||
|
|
▸ provide the argument autonomous_database on the command line.
|
||
|
|
|
||
|
|
This positional argument must be specified if any of the other
|
||
|
|
arguments in this group are specified.
|
||
|
|
|
||
|
|
--location=LOCATION
|
||
|
|
The location id of the autonomousDatabase resource.
|
||
|
|
|
||
|
|
To set the location attribute:
|
||
|
|
▸ provide the argument autonomous_database on the command line with
|
||
|
|
a fully specified name;
|
||
|
|
▸ provide the argument --location on the command line.
|
||
|
|
|
||
|
|
REQUIRED FLAGS
|
||
|
|
--cidr=CIDR
|
||
|
|
The subnet CIDR range for the Autonmous Database.
|
||
|
|
|
||
|
|
Network resource - The name of the VPC network used by the Autonomous
|
||
|
|
Database in the following format:
|
||
|
|
projects/{project}/global/networks/{network} This represents a Cloud
|
||
|
|
resource. (NOTE) Some attributes are not given arguments in this group but
|
||
|
|
can be set in other ways.
|
||
|
|
|
||
|
|
To set the project attribute:
|
||
|
|
◆ provide the argument --network on the command line with a fully
|
||
|
|
specified name;
|
||
|
|
◆ provide the argument --project on the command line;
|
||
|
|
◆ set the property core/project.
|
||
|
|
|
||
|
|
This must be specified.
|
||
|
|
|
||
|
|
--network=NETWORK
|
||
|
|
ID of the network or fully qualified identifier for the network.
|
||
|
|
|
||
|
|
To set the network attribute:
|
||
|
|
▸ provide the argument --network on the command line.
|
||
|
|
|
||
|
|
OPTIONAL FLAGS
|
||
|
|
--admin-password=ADMIN_PASSWORD
|
||
|
|
The password for the default ADMIN user.
|
||
|
|
|
||
|
|
--async
|
||
|
|
Return immediately, without waiting for the operation in progress to
|
||
|
|
complete.
|
||
|
|
|
||
|
|
--database=DATABASE
|
||
|
|
The name of the Autonomous Database. The database name must be unique
|
||
|
|
in the project. The name must begin with a letter and can contain a
|
||
|
|
maximum of 30 alphanumeric characters.
|
||
|
|
|
||
|
|
--display-name=DISPLAY_NAME
|
||
|
|
The display name for the Autonomous Database. The name does not have to
|
||
|
|
be unique within your project.
|
||
|
|
|
||
|
|
--labels=[LABELS,...]
|
||
|
|
The labels or tags associated with the Autonomous Database.
|
||
|
|
|
||
|
|
KEY
|
||
|
|
Keys must start with a lowercase character and contain only hyphens
|
||
|
|
(-), underscores (_), lowercase characters, and numbers.
|
||
|
|
|
||
|
|
VALUE
|
||
|
|
Values must contain only hyphens (-), underscores (_), lowercase
|
||
|
|
characters, and numbers.
|
||
|
|
|
||
|
|
Shorthand Example:
|
||
|
|
|
||
|
|
--labels=string=string
|
||
|
|
|
||
|
|
JSON Example:
|
||
|
|
|
||
|
|
--labels='{"string": "string"}'
|
||
|
|
|
||
|
|
File Example:
|
||
|
|
|
||
|
|
--labels=path_to_file.(yaml|json)
|
||
|
|
|
||
|
|
--request-id=REQUEST_ID
|
||
|
|
An optional ID to identify the request. This value is used to identify
|
||
|
|
duplicate requests. If you make a request with the same request ID and
|
||
|
|
the original request is still in progress or completed, the server
|
||
|
|
ignores the second request. This prevents clients from accidentally
|
||
|
|
creating duplicate commitments.
|
||
|
|
|
||
|
|
The request ID must be a valid UUID with the exception that zero UUID
|
||
|
|
is not supported (00000000-0000-0000-0000-000000000000).
|
||
|
|
|
||
|
|
The properties of an Autonomous Database.
|
||
|
|
|
||
|
|
--properties-db-workload=PROPERTIES_DB_WORKLOAD
|
||
|
|
The workload type of the Autonomous Database. PROPERTIES_DB_WORKLOAD
|
||
|
|
must be one of:
|
||
|
|
|
||
|
|
ajd
|
||
|
|
Autonomous JSON Database.
|
||
|
|
apex
|
||
|
|
Autonomous Database with the Oracle APEX Application Development
|
||
|
|
workload type.
|
||
|
|
dw
|
||
|
|
Autonomous Data Warehouse database.
|
||
|
|
oltp
|
||
|
|
Autonomous Transaction Processing database.
|
||
|
|
|
||
|
|
This flag argument must be specified if any of the other arguments in
|
||
|
|
this group are specified.
|
||
|
|
|
||
|
|
--properties-license-type=PROPERTIES_LICENSE_TYPE
|
||
|
|
The license type used for the Autonomous Database.
|
||
|
|
PROPERTIES_LICENSE_TYPE must be one of:
|
||
|
|
|
||
|
|
bring-your-own-license
|
||
|
|
Bring your own license
|
||
|
|
license-included
|
||
|
|
License included part of offer
|
||
|
|
|
||
|
|
This flag argument must be specified if any of the other arguments in
|
||
|
|
this group are specified.
|
||
|
|
|
||
|
|
--properties-backup-retention-period-days=PROPERTIES_BACKUP_RETENTION_PERIOD_DAYS
|
||
|
|
The retention period for the Autonomous Database. This field is
|
||
|
|
specified in days, can range from 1 day to 60 days, and has a default
|
||
|
|
value of 60 days.
|
||
|
|
|
||
|
|
--properties-character-set=PROPERTIES_CHARACTER_SET
|
||
|
|
The character set for the Autonomous Database. The default is
|
||
|
|
AL32UTF8.
|
||
|
|
|
||
|
|
--properties-compute-count=PROPERTIES_COMPUTE_COUNT
|
||
|
|
The number of compute servers for the Autonomous Database.
|
||
|
|
|
||
|
|
--properties-cpu-core-count=PROPERTIES_CPU_CORE_COUNT
|
||
|
|
The number of CPU cores to be made available to the database.
|
||
|
|
|
||
|
|
--properties-customer-contacts=[email=EMAIL]
|
||
|
|
The list of customer contacts.
|
||
|
|
|
||
|
|
email
|
||
|
|
The email address used by Oracle to send notifications regarding
|
||
|
|
databases and infrastructure.
|
||
|
|
|
||
|
|
Shorthand Example:
|
||
|
|
|
||
|
|
--properties-customer-contacts=email=string --properties-customer-contacts=email=string
|
||
|
|
|
||
|
|
JSON Example:
|
||
|
|
|
||
|
|
--properties-customer-contacts='[{"email": "string"}]'
|
||
|
|
|
||
|
|
File Example:
|
||
|
|
|
||
|
|
--properties-customer-contacts=path_to_file.(yaml|json)
|
||
|
|
|
||
|
|
--properties-data-storage-size-gb=PROPERTIES_DATA_STORAGE_SIZE_GB
|
||
|
|
The size of the data stored in the database, in gigabytes.
|
||
|
|
|
||
|
|
--properties-data-storage-size-tb=PROPERTIES_DATA_STORAGE_SIZE_TB
|
||
|
|
The size of the data stored in the database, in terabytes.
|
||
|
|
|
||
|
|
--properties-db-edition=PROPERTIES_DB_EDITION
|
||
|
|
The edition of the Autonomous Databases. PROPERTIES_DB_EDITION must
|
||
|
|
be one of:
|
||
|
|
|
||
|
|
enterprise-edition
|
||
|
|
Enterprise Database Edition
|
||
|
|
standard-edition
|
||
|
|
Standard Database Edition
|
||
|
|
|
||
|
|
--properties-db-version=PROPERTIES_DB_VERSION
|
||
|
|
The Oracle Database version for the Autonomous Database.
|
||
|
|
|
||
|
|
--properties-is-auto-scaling-enabled
|
||
|
|
This field indicates if auto scaling is enabled for the Autonomous
|
||
|
|
Database CPU core count.
|
||
|
|
|
||
|
|
--properties-is-storage-auto-scaling-enabled
|
||
|
|
This field indicates if auto scaling is enabled for the Autonomous
|
||
|
|
Database storage.
|
||
|
|
|
||
|
|
--properties-maintenance-schedule-type=PROPERTIES_MAINTENANCE_SCHEDULE_TYPE
|
||
|
|
The maintenance schedule of the Autonomous Database.
|
||
|
|
PROPERTIES_MAINTENANCE_SCHEDULE_TYPE must be one of:
|
||
|
|
|
||
|
|
early
|
||
|
|
An EARLY maintenance schedule patches the database before the
|
||
|
|
regular scheduled maintenance.
|
||
|
|
regular
|
||
|
|
A REGULAR maintenance schedule follows the normal maintenance
|
||
|
|
cycle.
|
||
|
|
|
||
|
|
--properties-mtls-connection-required
|
||
|
|
This field specifies if the Autonomous Database requires mTLS
|
||
|
|
connections.
|
||
|
|
|
||
|
|
--properties-n-character-set=PROPERTIES_N_CHARACTER_SET
|
||
|
|
The national character set for the Autonomous Database. The default
|
||
|
|
is AL16UTF16.
|
||
|
|
|
||
|
|
--properties-private-endpoint-ip=PROPERTIES_PRIVATE_ENDPOINT_IP
|
||
|
|
The private endpoint IP address for the Autonomous Database.
|
||
|
|
|
||
|
|
--properties-private-endpoint-label=PROPERTIES_PRIVATE_ENDPOINT_LABEL
|
||
|
|
The private endpoint label for the Autonomous Database.
|
||
|
|
|
||
|
|
--properties-secret-id=PROPERTIES_SECRET_ID
|
||
|
|
The ID of the Oracle Cloud Infrastructure vault secret.
|
||
|
|
|
||
|
|
--properties-vault-id=PROPERTIES_VAULT_ID
|
||
|
|
The ID of the Oracle Cloud Infrastructure vault.
|
||
|
|
|
||
|
|
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 help for details.
|
||
|
|
|
||
|
|
API REFERENCE
|
||
|
|
This command uses the oracledatabase/v1 API. The full documentation for
|
||
|
|
this API can be found at: https://cloud.google.com/oracle/database/docs
|