oci-cli 3.68.1__py3-none-any.whl → 3.70.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- common_util/ignored_commands.py +1 -0
- oci_cli/bin/psa.psm1 +51 -0
- oci_cli/help_text_producer/data_files/text/cmdref/ai/language/endpoint/create.txt +0 -8
- oci_cli/help_text_producer/data_files/text/cmdref/compute/boot-volume-attachment/attach.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/compute-host/list.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/compute/console-history/capture.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/device/list-instance.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/action.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/attach-vnic.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/change-compartment.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get-windows-initial-creds.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/launch.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/terminate.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-amd-vm-update-instance-platform-config.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-intel-vm-update-instance-platform-config.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-boot-volume-details.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update-instance-update-instance-source-via-image-details.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance/update.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/delete.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get-plink-connection-string.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-console-connection/update.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/instance-maintenance-reboot/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/accept-shielded-integrity-policy.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/measured-boot-report/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-iscsi-volume.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach-paravirtualized-volume.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute/volume-attachment/attach.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-configuration/create-from-instance.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/create.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool/update.txt +11 -0
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/attach.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/detach.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance/termination-proceed.txt +116 -0
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management/instance-pool-instance.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/compute-management.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/change-dataguard-role.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/convert-standby.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-details.txt +7 -7
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-from-backup-details.txt +7 -7
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +7 -7
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-backup.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database-version.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-autonomous-database-subscription.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-compartment.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-disaster-recovery-configuration.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-key.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-saas-admin-user.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-adb-cross-region-data-guard-details.txt +105 -102
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-create-cross-region-disaster-recovery-details.txt +114 -111
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-gcp-key-details.txt +108 -105
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-undelete-autonomous-database-details.txt +109 -106
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-cross-tenancy-disaster-recovery-details.txt +111 -108
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-id.txt +109 -106
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-timestamp.txt +110 -107
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-clone.txt +105 -102
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +109 -106
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create.txt +102 -99
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/deregister.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/data-safe/register.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/delete.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-autonomous-database-management.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/disable-operations-insights.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-autonomous-database-management.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/enable-operations-insights.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/fail-over.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/generate-wallet.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-autonomous-database-peers.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-clones.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-refreshable-clones.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-resource-pool-members.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list.txt +7 -7
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/manual-refresh.txt +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restart.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restore.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/saas-admin-user-status.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/start.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/stop.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/switchover.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update-autonomous-database-gcp-key-details.txt +125 -110
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update.txt +123 -108
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/create.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/delete.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup/update.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-backup.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-character-sets/list.txt +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-character-sets.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-dataguard.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/change-compartment.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/create.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image/update.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-software-image.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/get-metadata.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/get-regional-wallet-metadata.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate-regional-wallet.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet/rotate.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database-wallet.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-preview-version/list.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-preview-version.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-version/list.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-db-version.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/launch.txt +8 -7
- oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-exadata-infrastructure/update.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/create.txt +12 -12
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/update.txt +10 -10
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/add-storage.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/change-compartment.txt +4 -3
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/delete.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-exa-infra/update.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/create.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-vm-cluster/update.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-create-stand-by-database-details.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-database-from-backup.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-backup.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-from-database.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create-standby-database.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/create.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/migrate-vault-key.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/database/set-oci-db-key-version.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/db-home/create.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/delete.txt +129 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/get.txt +92 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/list.txt +153 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/mount.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot/unmount.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/dbnode-snapshot.txt +22 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/add.txt +154 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/create.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster/update.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/exadb-vm-cluster.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/db/pluggable-database/set-oci-pdb-key-version.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-backup.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-database.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch-from-db-system.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/launch.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/db/system/update.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/db.txt +14 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/add-lock.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/change-compartment.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-generic-jdbc.txt +11 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-mysql-database.txt +11 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-oracle-database.txt +10 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/create-postgresql.txt +11 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/delete.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/list.txt +13 -5
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/remove-lock.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-generic-jdbc.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-mysql-database.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-oracle-database.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection/update-postgresql.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/connection.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/endpoint-service/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/add-lock.txt +230 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/change-compartment.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/create-oracle-database-resource-principal.txt +175 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/delete.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/list.txt +157 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/refresh-oracle-database-resource-principal-credential.txt +125 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/remove-lock.txt +230 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/update-oracle-database-resource-principal.txt +164 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity/validate-oracle-database-resource-principal-credential.txt +101 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/identity.txt +32 -0
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/add-lock.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/change-compartment.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/create.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/delete.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/remove-lock.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint/update.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/private-endpoint.txt +2 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request/list.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-error/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools/work-request-log-entry/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/dbtools.txt +22 -0
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list-errors.txt → list.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-log/{list-logs.txt → list.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-log.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/create.txt +204 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/delete.txt +146 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/get.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/list.txt +189 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration/update.txt +224 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/automatic-dr-configuration.txt +22 -0
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-plan-execution/update.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery/dr-protection-group/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/disaster-recovery.txt +12 -0
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/change-distributed-autonomous-db-backup-config.txt +159 -0
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/create.txt +42 -12
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database/rotate-distributed-autonomous-database-passwords.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service/distributed-autonomous-database.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-autonomous-db-service.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/create.txt +31 -11
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database/distributed-db-service/distributed-database/rotate-distributed-database-passwords.txt +3 -2
- oci_cli/help_text_producer/data_files/text/cmdref/distributed-database.txt +2 -0
- oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/create.txt +19 -0
- oci_cli/help_text_producer/data_files/text/cmdref/fs/mount-target/update.txt +19 -0
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log/list.txt → work-request-log-entry/list-work-request-logs.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request/{work-request-log.txt → work-request-log-entry.txt} +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane/work-request.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/governance-rules-control-plane.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/create.txt +20 -0
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/list.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider/put.txt +20 -0
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/{social-identity-providers → social-identity-provider}/search.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-provider.txt +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains.txt +2 -4
- oci_cli/help_text_producer/data_files/text/cmdref/lb/load-balancer/update.txt +25 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/change-compartment.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/create.txt +217 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/delete.txt +146 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get-sync-job.txt +122 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/get.txt +108 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/list-sync-jobs.txt +167 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-export-to-object.txt +118 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/start-import-from-object.txt +118 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-export-to-object.txt +118 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/stop-import-from-object.txt +118 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link/update.txt +200 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection/list-object-storage-links.txt +154 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link-collection.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs/object-storage-link.txt +42 -0
- oci_cli/help_text_producer/data_files/text/cmdref/lfs.txt +28 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-cidr-utilization.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/ipam/get-subnet-ip-inventory.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/private-ip/create.txt +18 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv4-subnet-cidr.txt +143 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/add-ipv6-subnet-cidr.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/change-compartment.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/create.txt +28 -13
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/delete.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/modify-ipv4-subnet-cidr.txt +148 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv4-subnet-cidr.txt +145 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/remove-ipv6-subnet-cidr.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet/update.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet-topology/get.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/network/subnet.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network/vnic/assign-private-ip.txt +18 -0
- oci_cli/help_text_producer/data_files/text/cmdref/network.txt +6 -0
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
- oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/change-compartment.txt +136 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/create.txt +214 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/delete.txt +133 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/get.txt +95 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/list.txt +152 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access/update.txt +211 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/private-service-access.txt +25 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services/list.txt +129 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/psa-services.txt +16 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/cancel.txt +103 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/get.txt +91 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request/list.txt +140 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-error.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log/list.txt +131 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request-log.txt +15 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa/work-request.txt +23 -0
- oci_cli/help_text_producer/data_files/text/cmdref/psa.txt +47 -0
- oci_cli/help_text_producer/data_files/text/cmdref/session/authenticate.txt +9 -9
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/create.txt +6 -6
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/get.txt +2 -2
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/list.txt +1 -1
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident/update.txt +4 -4
- oci_cli/help_text_producer/data_files/text/cmdref/support/incident-resource-type/list.txt +3 -3
- oci_cli/help_text_producer/data_files/text/cmdref/support/validation-response/validate-user.txt +1 -1
- oci_cli/help_text_producer/data_files/text/index.txt +2 -0
- oci_cli/service_mapping.py +5 -0
- oci_cli/version.py +1 -1
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/METADATA +3 -3
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/RECORD +322 -253
- services/ai_language/src/oci_cli_ai_service_language/generated/aiservicelanguage_cli.py +1 -5
- services/core/src/oci_cli_compute/generated/compute_cli.py +4 -1
- services/core/src/oci_cli_compute_management/generated/computemanagement_cli.py +44 -9
- services/core/src/oci_cli_virtual_network/generated/virtualnetwork_cli.py +245 -10
- services/core/src/oci_cli_virtual_network/virtualnetwork_cli_extended.py +11 -1
- services/database/src/oci_cli_database/generated/database_cli.py +1507 -1216
- services/database_tools/src/oci_cli_database_tools/databasetools_cli_extended.py +198 -4
- services/database_tools/src/oci_cli_database_tools/generated/databasetools_cli.py +926 -53
- services/disaster_recovery/src/oci_cli_disaster_recovery/generated/disasterrecovery_cli.py +366 -2
- services/distributed_database/src/oci_cli_distributed_autonomous_db_service/generated/distributedautonomousdbservice_cli.py +77 -12
- services/distributed_database/src/oci_cli_distributed_db_service/generated/distributeddbservice_cli.py +8 -8
- services/file_storage/src/oci_cli_file_storage/generated/filestorage_cli.py +20 -8
- services/identity_domains/src/oci_cli_identity_domains/generated/identitydomains_cli.py +36 -11
- services/load_balancer/src/oci_cli_load_balancer/generated/loadbalancer_cli.py +17 -5
- services/lustre_file_storage/src/oci_cli_lustre_file_storage/generated/lustrefilestorage_cli.py +581 -0
- services/psa/__init__.py +4 -0
- services/psa/src/__init__.py +4 -0
- services/psa/src/oci_cli_private_service_access/__init__.py +4 -0
- services/psa/src/oci_cli_private_service_access/generated/__init__.py +4 -0
- services/psa/src/oci_cli_private_service_access/generated/client_mappings.py +14 -0
- services/psa/src/oci_cli_private_service_access/generated/privateserviceaccess_cli.py +738 -0
- services/psa/src/oci_cli_private_service_access/privateserviceaccess_cli_extended.py +92 -0
- services/psa/tests/__init__.py +4 -0
- oci_cli/help_text_producer/data_files/text/cmdref/identity-domains/social-identity-providers.txt +0 -20
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/LICENSE.txt +0 -0
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/WHEEL +0 -0
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/entry_points.txt +0 -0
- {oci_cli-3.68.1.dist-info → oci_cli-3.70.0.dist-info}/top_level.txt +0 -0
|
@@ -680,7 +680,6 @@ def change_project_compartment(ctx, from_json, project_id, compartment_id, if_ma
|
|
|
680
680
|
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] compartment identifier for the endpoint""")
|
|
681
681
|
@cli_util.option('--model-id', required=True, help=u"""The [OCID] of the model to associate with the endpoint.""")
|
|
682
682
|
@cli_util.option('--display-name', help=u"""A user-friendly display name for the resource. It should be unique and can be modified. Avoid entering confidential information.""")
|
|
683
|
-
@cli_util.option('--compute-type', type=custom_types.CliCaseInsensitiveChoice(["CPU", "GPU"]), help=u"""Compute infra type for endpoint.""")
|
|
684
683
|
@cli_util.option('--alias', help=u"""Unique name across user tenancy in a region to identify an endpoint to be used for inferencing.""")
|
|
685
684
|
@cli_util.option('--description', help=u"""A short description of the an endpoint.""")
|
|
686
685
|
@cli_util.option('--inference-units', type=click.INT, help=u"""Number of replicas required for this endpoint. This will be optional parameter. Default will be 1.""")
|
|
@@ -694,7 +693,7 @@ def change_project_compartment(ctx, from_json, project_id, compartment_id, if_ma
|
|
|
694
693
|
@click.pass_context
|
|
695
694
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'freeform-tags': {'module': 'ai_language', 'class': 'dict(str, string)'}, 'defined-tags': {'module': 'ai_language', 'class': 'dict(str, dict(str, object))'}}, output_type={'module': 'ai_language', 'class': 'Endpoint'})
|
|
696
695
|
@cli_util.wrap_exceptions
|
|
697
|
-
def create_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, model_id, display_name,
|
|
696
|
+
def create_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, model_id, display_name, alias, description, inference_units, freeform_tags, defined_tags):
|
|
698
697
|
|
|
699
698
|
kwargs = {}
|
|
700
699
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
@@ -706,9 +705,6 @@ def create_endpoint(ctx, from_json, wait_for_state, max_wait_seconds, wait_inter
|
|
|
706
705
|
if display_name is not None:
|
|
707
706
|
_details['displayName'] = display_name
|
|
708
707
|
|
|
709
|
-
if compute_type is not None:
|
|
710
|
-
_details['computeType'] = compute_type
|
|
711
|
-
|
|
712
708
|
if alias is not None:
|
|
713
709
|
_details['alias'] = alias
|
|
714
710
|
|
|
@@ -10016,6 +10016,7 @@ Example: `50`""")
|
|
|
10016
10016
|
@cli_util.option('--compute-host-lifecycle-state', help=u"""A filter to return only ComputeHostSummary resources that match the given Compute Host lifecycle State OCID exactly.""")
|
|
10017
10017
|
@cli_util.option('--compute-host-health', help=u"""A filter to return only ComputeHostSummary resources that match the given Compute Host health State OCID exactly.""")
|
|
10018
10018
|
@cli_util.option('--compute-host-group-id', help=u"""The [OCID] of the compute host group.""")
|
|
10019
|
+
@cli_util.option('--compute-host-in-subtree', type=click.BOOL, help=u"""When set to true, all the compartments in the tenancy are traversed and the hosts in the specified tenancy and its compartments are fetched. Default is false.""")
|
|
10019
10020
|
@cli_util.option('--all', 'all_pages', is_flag=True, help="""Fetches all pages of results. If you provide this option, then you cannot provide the --limit option.""")
|
|
10020
10021
|
@cli_util.option('--page-size', type=click.INT, help="""When fetching results, the number of results to fetch per call. Only valid when used with --all or --limit, and ignored otherwise.""")
|
|
10021
10022
|
@json_skeleton_utils.get_cli_json_input_option({})
|
|
@@ -10023,7 +10024,7 @@ Example: `50`""")
|
|
|
10023
10024
|
@click.pass_context
|
|
10024
10025
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={}, output_type={'module': 'core', 'class': 'ComputeHostCollection'})
|
|
10025
10026
|
@cli_util.wrap_exceptions
|
|
10026
|
-
def list_compute_hosts(ctx, from_json, all_pages, page_size, compartment_id, availability_domain, display_name, network_resource_id, limit, page, sort_by, sort_order, compute_host_lifecycle_state, compute_host_health, compute_host_group_id):
|
|
10027
|
+
def list_compute_hosts(ctx, from_json, all_pages, page_size, compartment_id, availability_domain, display_name, network_resource_id, limit, page, sort_by, sort_order, compute_host_lifecycle_state, compute_host_health, compute_host_group_id, compute_host_in_subtree):
|
|
10027
10028
|
|
|
10028
10029
|
if all_pages and limit:
|
|
10029
10030
|
raise click.UsageError('If you provide the --all option you cannot provide the --limit option')
|
|
@@ -10051,6 +10052,8 @@ def list_compute_hosts(ctx, from_json, all_pages, page_size, compartment_id, ava
|
|
|
10051
10052
|
kwargs['compute_host_health'] = compute_host_health
|
|
10052
10053
|
if compute_host_group_id is not None:
|
|
10053
10054
|
kwargs['compute_host_group_id'] = compute_host_group_id
|
|
10055
|
+
if compute_host_in_subtree is not None:
|
|
10056
|
+
kwargs['compute_host_in_subtree'] = compute_host_in_subtree
|
|
10054
10057
|
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
10055
10058
|
client = cli_util.build_client('core', 'compute', ctx)
|
|
10056
10059
|
if all_pages:
|
|
@@ -88,7 +88,7 @@ compute_management_root_group.add_command(instance_pool_instance_group)
|
|
|
88
88
|
@instance_pool_instance_group.command(name=cli_util.override('compute_management.attach_instance_pool_instance.command_name', 'attach'), help=u"""Attaches an instance to an instance pool. For information about the prerequisites that an instance must meet before you can attach it to a pool, see [Attaching an Instance to an Instance Pool]. \n[Command Reference](attachInstancePoolInstance)""")
|
|
89
89
|
@cli_util.option('--instance-pool-id', required=True, help=u"""The [OCID] of the instance pool.""")
|
|
90
90
|
@cli_util.option('--instance-id', required=True, help=u"""The [OCID] of the instance.""")
|
|
91
|
-
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ATTACHING", "ACTIVE", "DETACHING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
91
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ATTACHING", "ACTIVE", "DETACHING", "TERMINATION_AWAIT", "TERMINATION_PROCEED"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
92
92
|
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
93
93
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
94
94
|
@json_skeleton_utils.get_cli_json_input_option({})
|
|
@@ -538,15 +538,16 @@ Example: `{\"Department\": \"Finance\"}`""" + custom_types.cli_complex_type.COMP
|
|
|
538
538
|
This option is a JSON list with items of type AttachLoadBalancerDetails. For documentation on AttachLoadBalancerDetails please see our API reference: https://docs.cloud.oracle.com/api/#/en/iaas/20160918/datatypes/AttachLoadBalancerDetails.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
539
539
|
@cli_util.option('--instance-display-name-formatter', help=u"""A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format""")
|
|
540
540
|
@cli_util.option('--instance-hostname-formatter', help=u"""A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format""")
|
|
541
|
+
@cli_util.option('--lifecycle-management', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
541
542
|
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "SCALING", "STARTING", "STOPPING", "TERMINATING", "STOPPED", "TERMINATED", "RUNNING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
542
543
|
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
543
544
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
544
|
-
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[CreateInstancePoolPlacementConfigurationDetails]'}, 'load-balancers': {'module': 'core', 'class': 'list[AttachLoadBalancerDetails]'}})
|
|
545
|
+
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[CreateInstancePoolPlacementConfigurationDetails]'}, 'load-balancers': {'module': 'core', 'class': 'list[AttachLoadBalancerDetails]'}, 'lifecycle-management': {'module': 'core', 'class': 'InstancePoolLifecycleManagementDetails'}})
|
|
545
546
|
@cli_util.help_option
|
|
546
547
|
@click.pass_context
|
|
547
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[CreateInstancePoolPlacementConfigurationDetails]'}, 'load-balancers': {'module': 'core', 'class': 'list[AttachLoadBalancerDetails]'}}, output_type={'module': 'core', 'class': 'InstancePool'})
|
|
548
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[CreateInstancePoolPlacementConfigurationDetails]'}, 'load-balancers': {'module': 'core', 'class': 'list[AttachLoadBalancerDetails]'}, 'lifecycle-management': {'module': 'core', 'class': 'InstancePoolLifecycleManagementDetails'}}, output_type={'module': 'core', 'class': 'InstancePool'})
|
|
548
549
|
@cli_util.wrap_exceptions
|
|
549
|
-
def create_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, instance_configuration_id, placement_configurations, size, defined_tags, display_name, freeform_tags, load_balancers, instance_display_name_formatter, instance_hostname_formatter):
|
|
550
|
+
def create_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, instance_configuration_id, placement_configurations, size, defined_tags, display_name, freeform_tags, load_balancers, instance_display_name_formatter, instance_hostname_formatter, lifecycle_management):
|
|
550
551
|
|
|
551
552
|
kwargs = {}
|
|
552
553
|
|
|
@@ -574,6 +575,9 @@ def create_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wait_
|
|
|
574
575
|
if instance_hostname_formatter is not None:
|
|
575
576
|
_details['instanceHostnameFormatter'] = instance_hostname_formatter
|
|
576
577
|
|
|
578
|
+
if lifecycle_management is not None:
|
|
579
|
+
_details['lifecycleManagement'] = cli_util.parse_json_parameter("lifecycle_management", lifecycle_management)
|
|
580
|
+
|
|
577
581
|
client = cli_util.build_client('core', 'compute_management', ctx)
|
|
578
582
|
result = client.create_instance_pool(
|
|
579
583
|
create_instance_pool_details=_details,
|
|
@@ -1687,6 +1691,33 @@ def terminate_instance_pool(ctx, from_json, wait_for_state, max_wait_seconds, wa
|
|
|
1687
1691
|
cli_util.render_response(result, ctx)
|
|
1688
1692
|
|
|
1689
1693
|
|
|
1694
|
+
@instance_pool_instance_group.command(name=cli_util.override('compute_management.termination_proceed_instance_pool_instance.command_name', 'termination-proceed'), help=u"""Marks an instance in an instance pool to be ready for termination. \n[Command Reference](terminationProceedInstancePoolInstance)""")
|
|
1695
|
+
@cli_util.option('--instance-pool-id', required=True, help=u"""The [OCID] of the instance pool.""")
|
|
1696
|
+
@cli_util.option('--instance-id', required=True, help=u"""The [OCID] of the instance.""")
|
|
1697
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
1698
|
+
@cli_util.help_option
|
|
1699
|
+
@click.pass_context
|
|
1700
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
1701
|
+
@cli_util.wrap_exceptions
|
|
1702
|
+
def termination_proceed_instance_pool_instance(ctx, from_json, instance_pool_id, instance_id):
|
|
1703
|
+
|
|
1704
|
+
if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0:
|
|
1705
|
+
raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string')
|
|
1706
|
+
|
|
1707
|
+
kwargs = {}
|
|
1708
|
+
|
|
1709
|
+
_details = {}
|
|
1710
|
+
_details['instanceId'] = instance_id
|
|
1711
|
+
|
|
1712
|
+
client = cli_util.build_client('core', 'compute_management', ctx)
|
|
1713
|
+
result = client.termination_proceed_instance_pool_instance(
|
|
1714
|
+
instance_pool_id=instance_pool_id,
|
|
1715
|
+
termination_proceed_instance_pool_instance_details=_details,
|
|
1716
|
+
**kwargs
|
|
1717
|
+
)
|
|
1718
|
+
cli_util.render_response(result, ctx)
|
|
1719
|
+
|
|
1720
|
+
|
|
1690
1721
|
@cluster_network_group.command(name=cli_util.override('compute_management.update_cluster_network.command_name', 'update'), help=u"""Updates a [cluster network with instance pools]. The OCID of the cluster network remains the same. \n[Command Reference](updateClusterNetwork)""")
|
|
1691
1722
|
@cli_util.option('--cluster-network-id', required=True, help=u"""The [OCID] of the cluster network.""")
|
|
1692
1723
|
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
@@ -1839,23 +1870,24 @@ This option is a JSON list with items of type UpdateInstancePoolPlacementConfigu
|
|
|
1839
1870
|
To determine whether capacity is available for a specific shape before you resize an instance pool, use the [CreateComputeCapacityReport] operation.""")
|
|
1840
1871
|
@cli_util.option('--instance-display-name-formatter', help=u"""A user-friendly formatter for the instance pool's instances. Instance displaynames follow the format. The formatter does not retroactively change instance's displaynames, only instance displaynames in the future follow the format""")
|
|
1841
1872
|
@cli_util.option('--instance-hostname-formatter', help=u"""A user-friendly formatter for the instance pool's instances. Instance hostnames follow the format. The formatter does not retroactively change instance's hostnames, only instance hostnames in the future follow the format""")
|
|
1873
|
+
@cli_util.option('--lifecycle-management', type=custom_types.CLI_COMPLEX_TYPE, help=u"""""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
1842
1874
|
@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
|
|
1843
1875
|
@cli_util.option('--force', help="""Perform update without prompting for confirmation.""", is_flag=True)
|
|
1844
1876
|
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "SCALING", "STARTING", "STOPPING", "TERMINATING", "STOPPED", "TERMINATED", "RUNNING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
1845
1877
|
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
1846
1878
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
1847
|
-
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[UpdateInstancePoolPlacementConfigurationDetails]'}})
|
|
1879
|
+
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[UpdateInstancePoolPlacementConfigurationDetails]'}, 'lifecycle-management': {'module': 'core', 'class': 'InstancePoolLifecycleManagementDetails'}})
|
|
1848
1880
|
@cli_util.help_option
|
|
1849
1881
|
@click.pass_context
|
|
1850
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[UpdateInstancePoolPlacementConfigurationDetails]'}}, output_type={'module': 'core', 'class': 'InstancePool'})
|
|
1882
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'placement-configurations': {'module': 'core', 'class': 'list[UpdateInstancePoolPlacementConfigurationDetails]'}, 'lifecycle-management': {'module': 'core', 'class': 'InstancePoolLifecycleManagementDetails'}}, output_type={'module': 'core', 'class': 'InstancePool'})
|
|
1851
1883
|
@cli_util.wrap_exceptions
|
|
1852
|
-
def update_instance_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, defined_tags, display_name, freeform_tags, instance_configuration_id, placement_configurations, size, instance_display_name_formatter, instance_hostname_formatter, if_match):
|
|
1884
|
+
def update_instance_pool(ctx, from_json, force, wait_for_state, max_wait_seconds, wait_interval_seconds, instance_pool_id, defined_tags, display_name, freeform_tags, instance_configuration_id, placement_configurations, size, instance_display_name_formatter, instance_hostname_formatter, lifecycle_management, if_match):
|
|
1853
1885
|
|
|
1854
1886
|
if isinstance(instance_pool_id, six.string_types) and len(instance_pool_id.strip()) == 0:
|
|
1855
1887
|
raise click.UsageError('Parameter --instance-pool-id cannot be whitespace or empty string')
|
|
1856
1888
|
if not force:
|
|
1857
|
-
if defined_tags or freeform_tags or placement_configurations:
|
|
1858
|
-
if not click.confirm("WARNING: Updates to defined-tags and freeform-tags and placement-configurations will replace any existing values. Are you sure you want to continue?"):
|
|
1889
|
+
if defined_tags or freeform_tags or placement_configurations or lifecycle_management:
|
|
1890
|
+
if not click.confirm("WARNING: Updates to defined-tags and freeform-tags and placement-configurations and lifecycle-management will replace any existing values. Are you sure you want to continue?"):
|
|
1859
1891
|
ctx.abort()
|
|
1860
1892
|
|
|
1861
1893
|
kwargs = {}
|
|
@@ -1888,6 +1920,9 @@ def update_instance_pool(ctx, from_json, force, wait_for_state, max_wait_seconds
|
|
|
1888
1920
|
if instance_hostname_formatter is not None:
|
|
1889
1921
|
_details['instanceHostnameFormatter'] = instance_hostname_formatter
|
|
1890
1922
|
|
|
1923
|
+
if lifecycle_management is not None:
|
|
1924
|
+
_details['lifecycleManagement'] = cli_util.parse_json_parameter("lifecycle_management", lifecycle_management)
|
|
1925
|
+
|
|
1891
1926
|
client = cli_util.build_client('core', 'compute_management', ctx)
|
|
1892
1927
|
result = client.update_instance_pool(
|
|
1893
1928
|
instance_pool_id=instance_pool_id,
|
|
@@ -693,6 +693,79 @@ def add_drg_route_rules(ctx, from_json, drg_route_table_id, route_rules):
|
|
|
693
693
|
cli_util.render_response(result, ctx)
|
|
694
694
|
|
|
695
695
|
|
|
696
|
+
@subnet_group.command(name=cli_util.override('virtual_network.add_ipv4_subnet_cidr.command_name', 'add'), help=u"""Add an IPv4 prefix to a subnet. \n[Command Reference](addIpv4SubnetCidr)""")
|
|
697
|
+
@cli_util.option('--subnet-id', required=True, help=u"""Specify the [OCID] of the subnet.""")
|
|
698
|
+
@cli_util.option('--ipv4-cidr-block', required=True, help=u"""The CIDR IP address range of the subnet. The CIDR must maintain the following rules -
|
|
699
|
+
|
|
700
|
+
a. The CIDR block is valid and correctly formatted. b. The new range is within one of the parent VCN ranges.
|
|
701
|
+
|
|
702
|
+
Example: `10.0.1.0/24`""")
|
|
703
|
+
@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
|
|
704
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
705
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
706
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
707
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
708
|
+
@cli_util.help_option
|
|
709
|
+
@click.pass_context
|
|
710
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
711
|
+
@cli_util.wrap_exceptions
|
|
712
|
+
def add_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, if_match):
|
|
713
|
+
|
|
714
|
+
if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0:
|
|
715
|
+
raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string')
|
|
716
|
+
|
|
717
|
+
kwargs = {}
|
|
718
|
+
if if_match is not None:
|
|
719
|
+
kwargs['if_match'] = if_match
|
|
720
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
721
|
+
|
|
722
|
+
_details = {}
|
|
723
|
+
_details['ipv4CidrBlock'] = ipv4_cidr_block
|
|
724
|
+
|
|
725
|
+
client = cli_util.build_client('core', 'virtual_network', ctx)
|
|
726
|
+
result = client.add_ipv4_subnet_cidr(
|
|
727
|
+
subnet_id=subnet_id,
|
|
728
|
+
add_ipv4_subnet_cidr_details=_details,
|
|
729
|
+
**kwargs
|
|
730
|
+
)
|
|
731
|
+
work_request_client = cli_util.build_client('work_requests', 'work_request', ctx)
|
|
732
|
+
if wait_for_state:
|
|
733
|
+
|
|
734
|
+
if hasattr(work_request_client, 'get_work_request') and callable(getattr(work_request_client, 'get_work_request')):
|
|
735
|
+
try:
|
|
736
|
+
wait_period_kwargs = {}
|
|
737
|
+
if max_wait_seconds is not None:
|
|
738
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
739
|
+
if wait_interval_seconds is not None:
|
|
740
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
741
|
+
if 'opc-work-request-id' not in result.headers:
|
|
742
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
743
|
+
cli_util.render_response(result, ctx)
|
|
744
|
+
return
|
|
745
|
+
|
|
746
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
747
|
+
result = oci.wait_until(work_request_client, work_request_client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
748
|
+
if hasattr(result, "data") and hasattr(result.data, "resources") and len(result.data.resources) == 1:
|
|
749
|
+
entity_type = result.data.resources[0].entity_type
|
|
750
|
+
identifier = result.data.resources[0].identifier
|
|
751
|
+
get_operation = 'get_' + entity_type
|
|
752
|
+
if hasattr(client, get_operation) and callable(getattr(client, get_operation)):
|
|
753
|
+
result = getattr(client, get_operation)(identifier)
|
|
754
|
+
|
|
755
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
756
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
757
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
758
|
+
cli_util.render_response(result, ctx)
|
|
759
|
+
sys.exit(2)
|
|
760
|
+
except Exception:
|
|
761
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
762
|
+
cli_util.render_response(result, ctx)
|
|
763
|
+
raise
|
|
764
|
+
else:
|
|
765
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
766
|
+
cli_util.render_response(result, ctx)
|
|
767
|
+
|
|
768
|
+
|
|
696
769
|
@subnet_group.command(name=cli_util.override('virtual_network.add_ipv6_subnet_cidr.command_name', 'add'), help=u"""Add an IPv6 prefix to a subnet. \n[Command Reference](addIpv6SubnetCidr)""")
|
|
697
770
|
@cli_util.option('--subnet-id', required=True, help=u"""Specify the [OCID] of the subnet.""")
|
|
698
771
|
@cli_util.option('--ipv6-cidr-block', required=True, help=u"""This field is not required and should only be specified when adding an IPv6 prefix to a subnet's IPv6 address space. See[IPv6 Addresses].
|
|
@@ -3580,11 +3653,15 @@ Example: `bminstance1`""")
|
|
|
3580
3653
|
@cli_util.option('--ip-address', help=u"""A private IP address of your choice. Must be an available IP address within the subnet's CIDR. If you don't specify a value, Oracle automatically assigns a private IP address from the subnet.
|
|
3581
3654
|
|
|
3582
3655
|
Example: `10.0.3.3`""")
|
|
3656
|
+
@cli_util.option('--cidr-prefix-length', type=click.INT, help=u"""An optional field that when combined with the ipAddress field, will be used to allocate secondary IPv4 CIDRs. The CIDR range created by this combination must be within the subnet's CIDR and the CIDR range should not collide with any existing IPv4 address allocation. The VNIC ID specified in the request object should not already been assigned more than the max IPv4 addresses. If you don't specify a value, this option will be ignored.
|
|
3657
|
+
|
|
3658
|
+
Example: 18""")
|
|
3583
3659
|
@cli_util.option('--vnic-id', help=u"""The [OCID] of the VNIC to assign the private IP to. The VNIC and private IP must be in the same subnet.""")
|
|
3584
3660
|
@cli_util.option('--vlan-id', help=u"""Use this attribute only with the Oracle Cloud VMware Solution.
|
|
3585
3661
|
|
|
3586
3662
|
The [OCID] of the VLAN from which the private IP is to be drawn. The IP address, *if supplied*, must be valid for the given VLAN. See [Vlan].""")
|
|
3587
3663
|
@cli_util.option('--subnet-id', help=u"""The [OCID] of the subnet from which the private IP is to be drawn. The IP address, *if supplied*, must be valid for the given subnet.""")
|
|
3664
|
+
@cli_util.option('--ipv4-subnet-cidr-at-creation', help=u"""Any one of the IPv4 CIDRs allocated to the subnet.""")
|
|
3588
3665
|
@cli_util.option('--lifetime', type=custom_types.CliCaseInsensitiveChoice(["EPHEMERAL", "RESERVED"]), help=u"""Lifetime of the IP address. There are two types of IPs: - Ephemeral - Reserved""")
|
|
3589
3666
|
@cli_util.option('--route-table-id', help=u"""The [OCID] of the route table the IP address or VNIC will use. For more information, see [Per-resource Routing].""")
|
|
3590
3667
|
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}})
|
|
@@ -3592,7 +3669,7 @@ The [OCID] of the VLAN from which the private IP is to be drawn. The IP address,
|
|
|
3592
3669
|
@click.pass_context
|
|
3593
3670
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}}, output_type={'module': 'core', 'class': 'PrivateIp'})
|
|
3594
3671
|
@cli_util.wrap_exceptions
|
|
3595
|
-
def create_private_ip(ctx, from_json, defined_tags, display_name, freeform_tags, hostname_label, ip_address, vnic_id, vlan_id, subnet_id, lifetime, route_table_id):
|
|
3672
|
+
def create_private_ip(ctx, from_json, defined_tags, display_name, freeform_tags, hostname_label, ip_address, cidr_prefix_length, vnic_id, vlan_id, subnet_id, ipv4_subnet_cidr_at_creation, lifetime, route_table_id):
|
|
3596
3673
|
|
|
3597
3674
|
kwargs = {}
|
|
3598
3675
|
|
|
@@ -3613,6 +3690,9 @@ def create_private_ip(ctx, from_json, defined_tags, display_name, freeform_tags,
|
|
|
3613
3690
|
if ip_address is not None:
|
|
3614
3691
|
_details['ipAddress'] = ip_address
|
|
3615
3692
|
|
|
3693
|
+
if cidr_prefix_length is not None:
|
|
3694
|
+
_details['cidrPrefixLength'] = cidr_prefix_length
|
|
3695
|
+
|
|
3616
3696
|
if vnic_id is not None:
|
|
3617
3697
|
_details['vnicId'] = vnic_id
|
|
3618
3698
|
|
|
@@ -3622,6 +3702,9 @@ def create_private_ip(ctx, from_json, defined_tags, display_name, freeform_tags,
|
|
|
3622
3702
|
if subnet_id is not None:
|
|
3623
3703
|
_details['subnetId'] = subnet_id
|
|
3624
3704
|
|
|
3705
|
+
if ipv4_subnet_cidr_at_creation is not None:
|
|
3706
|
+
_details['ipv4SubnetCidrAtCreation'] = ipv4_subnet_cidr_at_creation
|
|
3707
|
+
|
|
3625
3708
|
if lifetime is not None:
|
|
3626
3709
|
_details['lifetime'] = lifetime
|
|
3627
3710
|
|
|
@@ -4096,11 +4179,6 @@ You may optionally associate a set of DHCP options with the subnet. If you don't
|
|
|
4096
4179
|
You may optionally specify a *display name* for the subnet, otherwise a default is provided. It does not have to be unique, and you can change it. Avoid entering confidential information.
|
|
4097
4180
|
|
|
4098
4181
|
You can also add a DNS label for the subnet, which is required if you want the Internet and VCN Resolver to resolve hostnames for instances in the subnet. For more information, see [DNS in Your Virtual Cloud Network]. \n[Command Reference](createSubnet)""")
|
|
4099
|
-
@cli_util.option('--cidr-block', required=True, help=u"""The CIDR IP address range of the subnet. The CIDR must maintain the following rules -
|
|
4100
|
-
|
|
4101
|
-
a. The CIDR block is valid and correctly formatted. b. The new range is within one of the parent VCN ranges.
|
|
4102
|
-
|
|
4103
|
-
Example: `10.0.1.0/24`""")
|
|
4104
4182
|
@cli_util.option('--compartment-id', required=True, help=u"""The [OCID] of the compartment to contain the subnet.""")
|
|
4105
4183
|
@cli_util.option('--vcn-id', required=True, help=u"""The [OCID] of the VCN to contain the subnet.""")
|
|
4106
4184
|
@cli_util.option('--availability-domain', help=u"""Controls whether the subnet is regional or specific to an availability domain. Oracle recommends creating regional subnets because they're more flexible and make it easier to implement failover across availability domains. Originally, AD-specific subnets were the only kind available to use.
|
|
@@ -4110,6 +4188,12 @@ To create a regional subnet, omit this attribute. Then any resources later creat
|
|
|
4110
4188
|
To instead create an AD-specific subnet, set this attribute to the availability domain you want this subnet to be in. Then any resources later created in this subnet can only be created in that availability domain.
|
|
4111
4189
|
|
|
4112
4190
|
Example: `Uocm:PHX-AD-1`""")
|
|
4191
|
+
@cli_util.option('--cidr-block', help=u"""The CIDR IP address range of the subnet. The CIDR must maintain the following rules -
|
|
4192
|
+
|
|
4193
|
+
a. The CIDR block is valid and correctly formatted. b. The new range is within one of the parent VCN ranges.
|
|
4194
|
+
|
|
4195
|
+
Example: `10.0.1.0/24`""")
|
|
4196
|
+
@cli_util.option('--ipv4-cidr-blocks', type=custom_types.CLI_COMPLEX_TYPE, help=u"""The list of all IPv4 CIDR blocks for the subnet that meets the following criteria: - Ipv4 CIDR blocks must be valid. - Multiple Ipv4 CIDR blocks must not overlap each other or the on-premises network CIDR block. - The number of prefixes must not exceed the limit of IPv4 prefixes allowed to a subnet.""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
4113
4197
|
@cli_util.option('--defined-tags', type=custom_types.CLI_COMPLEX_TYPE, help=u"""Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags].
|
|
4114
4198
|
|
|
4115
4199
|
Example: `{\"Operations\": {\"CostCenter\": \"42\"}}`""" + custom_types.cli_complex_type.COMPLEX_TYPE_HELP)
|
|
@@ -4148,23 +4232,28 @@ Example: `true`""")
|
|
|
4148
4232
|
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["PROVISIONING", "AVAILABLE", "TERMINATING", "TERMINATED", "UPDATING"]), multiple=True, help="""This operation creates, modifies or deletes a resource that has a defined lifecycle state. Specify this option to perform the action and then wait until the resource reaches a given lifecycle state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
4149
4233
|
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the resource to reach the lifecycle state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
4150
4234
|
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the resource has reached the lifecycle state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
4151
|
-
@json_skeleton_utils.get_cli_json_input_option({'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'ipv6-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'security-list-ids': {'module': 'core', 'class': 'list[string]'}})
|
|
4235
|
+
@json_skeleton_utils.get_cli_json_input_option({'ipv4-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'ipv6-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'security-list-ids': {'module': 'core', 'class': 'list[string]'}})
|
|
4152
4236
|
@cli_util.help_option
|
|
4153
4237
|
@click.pass_context
|
|
4154
|
-
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'ipv6-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'security-list-ids': {'module': 'core', 'class': 'list[string]'}}, output_type={'module': 'core', 'class': 'Subnet'})
|
|
4238
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'ipv4-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}, 'ipv6-cidr-blocks': {'module': 'core', 'class': 'list[string]'}, 'security-list-ids': {'module': 'core', 'class': 'list[string]'}}, output_type={'module': 'core', 'class': 'Subnet'})
|
|
4155
4239
|
@cli_util.wrap_exceptions
|
|
4156
|
-
def create_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds,
|
|
4240
|
+
def create_subnet(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, compartment_id, vcn_id, availability_domain, cidr_block, ipv4_cidr_blocks, defined_tags, dhcp_options_id, display_name, dns_label, freeform_tags, ipv6_cidr_block, ipv6_cidr_blocks, prohibit_internet_ingress, prohibit_public_ip_on_vnic, route_table_id, security_list_ids):
|
|
4157
4241
|
|
|
4158
4242
|
kwargs = {}
|
|
4159
4243
|
|
|
4160
4244
|
_details = {}
|
|
4161
|
-
_details['cidrBlock'] = cidr_block
|
|
4162
4245
|
_details['compartmentId'] = compartment_id
|
|
4163
4246
|
_details['vcnId'] = vcn_id
|
|
4164
4247
|
|
|
4165
4248
|
if availability_domain is not None:
|
|
4166
4249
|
_details['availabilityDomain'] = availability_domain
|
|
4167
4250
|
|
|
4251
|
+
if cidr_block is not None:
|
|
4252
|
+
_details['cidrBlock'] = cidr_block
|
|
4253
|
+
|
|
4254
|
+
if ipv4_cidr_blocks is not None:
|
|
4255
|
+
_details['ipv4CidrBlocks'] = cli_util.parse_json_parameter("ipv4_cidr_blocks", ipv4_cidr_blocks)
|
|
4256
|
+
|
|
4168
4257
|
if defined_tags is not None:
|
|
4169
4258
|
_details['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
4170
4259
|
|
|
@@ -10925,6 +11014,79 @@ def list_vtaps(ctx, from_json, all_pages, page_size, compartment_id, vcn_id, sou
|
|
|
10925
11014
|
cli_util.render_response(result, ctx)
|
|
10926
11015
|
|
|
10927
11016
|
|
|
11017
|
+
@subnet_group.command(name=cli_util.override('virtual_network.modify_ipv4_subnet_cidr.command_name', 'modify-ipv4-subnet-cidr'), help=u"""Updates the specified Ipv4 CIDR block of a Subnet. The new Ipv4 CIDR IP range must meet the following criteria:
|
|
11018
|
+
|
|
11019
|
+
- Must be valid. - Must not overlap with another Ipv4 CIDR block in the Subnet or the on-premises network CIDR block. - Must not exceed the limit of Ipv4 CIDR blocks allowed per Subnet. - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules. - No IP address in an existing subnet should be outside of the new CIDR block range. \n[Command Reference](modifyIpv4SubnetCidr)""")
|
|
11020
|
+
@cli_util.option('--subnet-id', required=True, help=u"""Specify the [OCID] of the subnet.""")
|
|
11021
|
+
@cli_util.option('--ipv4-cidr-block', required=True, help=u"""The Ipv4 CIDR IP address to update.""")
|
|
11022
|
+
@cli_util.option('--updated-ipv4-cidr-block', required=True, help=u"""The new Ipv4 CIDR IP address.""")
|
|
11023
|
+
@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
|
|
11024
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
11025
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
11026
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
11027
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
11028
|
+
@cli_util.help_option
|
|
11029
|
+
@click.pass_context
|
|
11030
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
11031
|
+
@cli_util.wrap_exceptions
|
|
11032
|
+
def modify_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, updated_ipv4_cidr_block, if_match):
|
|
11033
|
+
|
|
11034
|
+
if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0:
|
|
11035
|
+
raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string')
|
|
11036
|
+
|
|
11037
|
+
kwargs = {}
|
|
11038
|
+
if if_match is not None:
|
|
11039
|
+
kwargs['if_match'] = if_match
|
|
11040
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
11041
|
+
|
|
11042
|
+
_details = {}
|
|
11043
|
+
_details['ipv4CidrBlock'] = ipv4_cidr_block
|
|
11044
|
+
_details['updatedIpv4CidrBlock'] = updated_ipv4_cidr_block
|
|
11045
|
+
|
|
11046
|
+
client = cli_util.build_client('core', 'virtual_network', ctx)
|
|
11047
|
+
result = client.modify_ipv4_subnet_cidr(
|
|
11048
|
+
subnet_id=subnet_id,
|
|
11049
|
+
modify_ipv4_subnet_cidr_details=_details,
|
|
11050
|
+
**kwargs
|
|
11051
|
+
)
|
|
11052
|
+
work_request_client = cli_util.build_client('work_requests', 'work_request', ctx)
|
|
11053
|
+
if wait_for_state:
|
|
11054
|
+
|
|
11055
|
+
if hasattr(work_request_client, 'get_work_request') and callable(getattr(work_request_client, 'get_work_request')):
|
|
11056
|
+
try:
|
|
11057
|
+
wait_period_kwargs = {}
|
|
11058
|
+
if max_wait_seconds is not None:
|
|
11059
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
11060
|
+
if wait_interval_seconds is not None:
|
|
11061
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
11062
|
+
if 'opc-work-request-id' not in result.headers:
|
|
11063
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
11064
|
+
cli_util.render_response(result, ctx)
|
|
11065
|
+
return
|
|
11066
|
+
|
|
11067
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
11068
|
+
result = oci.wait_until(work_request_client, work_request_client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
11069
|
+
if hasattr(result, "data") and hasattr(result.data, "resources") and len(result.data.resources) == 1:
|
|
11070
|
+
entity_type = result.data.resources[0].entity_type
|
|
11071
|
+
identifier = result.data.resources[0].identifier
|
|
11072
|
+
get_operation = 'get_' + entity_type
|
|
11073
|
+
if hasattr(client, get_operation) and callable(getattr(client, get_operation)):
|
|
11074
|
+
result = getattr(client, get_operation)(identifier)
|
|
11075
|
+
|
|
11076
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
11077
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
11078
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
11079
|
+
cli_util.render_response(result, ctx)
|
|
11080
|
+
sys.exit(2)
|
|
11081
|
+
except Exception:
|
|
11082
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
11083
|
+
cli_util.render_response(result, ctx)
|
|
11084
|
+
raise
|
|
11085
|
+
else:
|
|
11086
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
11087
|
+
cli_util.render_response(result, ctx)
|
|
11088
|
+
|
|
11089
|
+
|
|
10928
11090
|
@vcn_group.command(name=cli_util.override('virtual_network.modify_vcn_cidr.command_name', 'modify-vcn-cidr'), help=u"""Updates the specified CIDR block of a VCN. The new CIDR IP range must meet the following criteria:
|
|
10929
11091
|
|
|
10930
11092
|
- Must be valid. - Must not overlap with another CIDR block in the VCN, a CIDR block of a peered VCN, or the on-premises network CIDR block. - Must not exceed the limit of CIDR blocks allowed per VCN. - Must include IP addresses from the original CIDR block that are used in the VCN's existing route rules. - No IP address in an existing subnet should be outside of the new CIDR block range.
|
|
@@ -11185,6 +11347,79 @@ def remove_import_drg_route_distribution(ctx, from_json, wait_for_state, max_wai
|
|
|
11185
11347
|
cli_util.render_response(result, ctx)
|
|
11186
11348
|
|
|
11187
11349
|
|
|
11350
|
+
@subnet_group.command(name=cli_util.override('virtual_network.remove_ipv4_subnet_cidr.command_name', 'remove'), help=u"""Remove an IPv4 prefix from a subnet \n[Command Reference](removeIpv4SubnetCidr)""")
|
|
11351
|
+
@cli_util.option('--subnet-id', required=True, help=u"""Specify the [OCID] of the subnet.""")
|
|
11352
|
+
@cli_util.option('--ipv4-cidr-block', required=True, help=u"""This field should only be specified when removing an IPv4 prefix from a subnet's IPv4 address space. The CIDR must maintain the following rules -
|
|
11353
|
+
|
|
11354
|
+
a. The CIDR block is valid and correctly formatted. b. The CIDR range is within one of the parent VCN ranges. c. The CIDR range to be removed is already present in the list of ipv4CidrBlocks
|
|
11355
|
+
|
|
11356
|
+
Example: `10.0.1.0/24`""")
|
|
11357
|
+
@cli_util.option('--if-match', help=u"""For optimistic concurrency control. In the PUT or DELETE call for a resource, set the `if-match` parameter to the value of the etag from a previous GET or POST response for that resource. The resource will be updated or deleted only if the etag you provide matches the resource's current etag value.""")
|
|
11358
|
+
@cli_util.option('--wait-for-state', type=custom_types.CliCaseInsensitiveChoice(["ACCEPTED", "IN_PROGRESS", "FAILED", "SUCCEEDED"]), multiple=True, help="""This operation asynchronously creates, modifies or deletes a resource and uses a work request to track the progress of the operation. Specify this option to perform the action and then wait until the work request reaches a certain state. Multiple states can be specified, returning on the first state. For example, --wait-for-state SUCCEEDED --wait-for-state FAILED would return on whichever lifecycle state is reached first. If timeout is reached, a return code of 2 is returned. For any other error, a return code of 1 is returned.""")
|
|
11359
|
+
@cli_util.option('--max-wait-seconds', type=click.INT, help="""The maximum time to wait for the work request to reach the state defined by --wait-for-state. Defaults to 1200 seconds.""")
|
|
11360
|
+
@cli_util.option('--wait-interval-seconds', type=click.INT, help="""Check every --wait-interval-seconds to see whether the work request has reached the state defined by --wait-for-state. Defaults to 30 seconds.""")
|
|
11361
|
+
@json_skeleton_utils.get_cli_json_input_option({})
|
|
11362
|
+
@cli_util.help_option
|
|
11363
|
+
@click.pass_context
|
|
11364
|
+
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={})
|
|
11365
|
+
@cli_util.wrap_exceptions
|
|
11366
|
+
def remove_ipv4_subnet_cidr(ctx, from_json, wait_for_state, max_wait_seconds, wait_interval_seconds, subnet_id, ipv4_cidr_block, if_match):
|
|
11367
|
+
|
|
11368
|
+
if isinstance(subnet_id, six.string_types) and len(subnet_id.strip()) == 0:
|
|
11369
|
+
raise click.UsageError('Parameter --subnet-id cannot be whitespace or empty string')
|
|
11370
|
+
|
|
11371
|
+
kwargs = {}
|
|
11372
|
+
if if_match is not None:
|
|
11373
|
+
kwargs['if_match'] = if_match
|
|
11374
|
+
kwargs['opc_request_id'] = cli_util.use_or_generate_request_id(ctx.obj['request_id'])
|
|
11375
|
+
|
|
11376
|
+
_details = {}
|
|
11377
|
+
_details['ipv4CidrBlock'] = ipv4_cidr_block
|
|
11378
|
+
|
|
11379
|
+
client = cli_util.build_client('core', 'virtual_network', ctx)
|
|
11380
|
+
result = client.remove_ipv4_subnet_cidr(
|
|
11381
|
+
subnet_id=subnet_id,
|
|
11382
|
+
remove_ipv4_subnet_cidr_details=_details,
|
|
11383
|
+
**kwargs
|
|
11384
|
+
)
|
|
11385
|
+
work_request_client = cli_util.build_client('work_requests', 'work_request', ctx)
|
|
11386
|
+
if wait_for_state:
|
|
11387
|
+
|
|
11388
|
+
if hasattr(work_request_client, 'get_work_request') and callable(getattr(work_request_client, 'get_work_request')):
|
|
11389
|
+
try:
|
|
11390
|
+
wait_period_kwargs = {}
|
|
11391
|
+
if max_wait_seconds is not None:
|
|
11392
|
+
wait_period_kwargs['max_wait_seconds'] = max_wait_seconds
|
|
11393
|
+
if wait_interval_seconds is not None:
|
|
11394
|
+
wait_period_kwargs['max_interval_seconds'] = wait_interval_seconds
|
|
11395
|
+
if 'opc-work-request-id' not in result.headers:
|
|
11396
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state')
|
|
11397
|
+
cli_util.render_response(result, ctx)
|
|
11398
|
+
return
|
|
11399
|
+
|
|
11400
|
+
click.echo('Action completed. Waiting until the work request has entered state: {}'.format(wait_for_state), file=sys.stderr)
|
|
11401
|
+
result = oci.wait_until(work_request_client, work_request_client.get_work_request(result.headers['opc-work-request-id']), 'status', wait_for_state, **wait_period_kwargs)
|
|
11402
|
+
if hasattr(result, "data") and hasattr(result.data, "resources") and len(result.data.resources) == 1:
|
|
11403
|
+
entity_type = result.data.resources[0].entity_type
|
|
11404
|
+
identifier = result.data.resources[0].identifier
|
|
11405
|
+
get_operation = 'get_' + entity_type
|
|
11406
|
+
if hasattr(client, get_operation) and callable(getattr(client, get_operation)):
|
|
11407
|
+
result = getattr(client, get_operation)(identifier)
|
|
11408
|
+
|
|
11409
|
+
except oci.exceptions.MaximumWaitTimeExceeded as e:
|
|
11410
|
+
# If we fail, we should show an error, but we should still provide the information to the customer
|
|
11411
|
+
click.echo('Failed to wait until the work request entered the specified state. Outputting last known resource state', file=sys.stderr)
|
|
11412
|
+
cli_util.render_response(result, ctx)
|
|
11413
|
+
sys.exit(2)
|
|
11414
|
+
except Exception:
|
|
11415
|
+
click.echo('Encountered error while waiting for work request to enter the specified state. Outputting last known resource state', file=sys.stderr)
|
|
11416
|
+
cli_util.render_response(result, ctx)
|
|
11417
|
+
raise
|
|
11418
|
+
else:
|
|
11419
|
+
click.echo('Unable to wait for the work request to enter the specified state', file=sys.stderr)
|
|
11420
|
+
cli_util.render_response(result, ctx)
|
|
11421
|
+
|
|
11422
|
+
|
|
11188
11423
|
@subnet_group.command(name=cli_util.override('virtual_network.remove_ipv6_subnet_cidr.command_name', 'remove'), help=u"""Remove an IPv6 prefix from a subnet. At least one IPv6 CIDR should remain. \n[Command Reference](removeIpv6SubnetCidr)""")
|
|
11189
11424
|
@cli_util.option('--subnet-id', required=True, help=u"""Specify the [OCID] of the subnet.""")
|
|
11190
11425
|
@cli_util.option('--ipv6-cidr-block', required=True, help=u"""This field is not required and should only be specified when removing an IPv6 prefix from a subnet's IPv6 address space. See[IPv6 Addresses].
|
|
@@ -60,6 +60,8 @@ cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.vcn_group, virtua
|
|
|
60
60
|
cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.vcn_group, virtualnetwork_cli.remove_ipv6_vcn_cidr, "remove-ipv6-vcn-cidr")
|
|
61
61
|
cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.subnet_group, virtualnetwork_cli.add_ipv6_subnet_cidr, "add-ipv6-subnet-cidr")
|
|
62
62
|
cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.subnet_group, virtualnetwork_cli.remove_ipv6_subnet_cidr, "remove-ipv6-subnet-cidr")
|
|
63
|
+
cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.subnet_group, virtualnetwork_cli.add_ipv4_subnet_cidr, "add-ipv4-subnet-cidr")
|
|
64
|
+
cli_util.rename_command(virtualnetwork_cli, virtualnetwork_cli.subnet_group, virtualnetwork_cli.remove_ipv4_subnet_cidr, "remove-ipv4-subnet-cidr")
|
|
63
65
|
|
|
64
66
|
# help for oci network ip-sec-connection create --static-routes
|
|
65
67
|
network_create_ip_sec_connection_static_routes_example = """'["10.0.0.0/16"]'"""
|
|
@@ -122,7 +124,7 @@ For more information about secondary private IPs, see [IP Addresses]
|
|
|
122
124
|
@click.pass_context
|
|
123
125
|
@json_skeleton_utils.json_skeleton_generation_handler(input_params_to_complex_types={'defined-tags': {'module': 'core', 'class': 'dict(str, dict(str, object))'}, 'freeform-tags': {'module': 'core', 'class': 'dict(str, string)'}}, output_type={'module': 'core', 'class': 'PrivateIp'})
|
|
124
126
|
@cli_util.wrap_exceptions
|
|
125
|
-
def assign_private_ip(ctx, from_json, vnic_id, vlan_id, ip_address, display_name, hostname_label, unassign_if_already_assigned,
|
|
127
|
+
def assign_private_ip(ctx, from_json, vnic_id, vlan_id, ip_address, display_name, hostname_label, unassign_if_already_assigned, cidr_prefix_length, ipv4_subnet_cidr_at_creation, route_table_id, lifetime, defined_tags, freeform_tags):
|
|
126
128
|
networking_client = cli_util.build_client('core', 'virtual_network', ctx)
|
|
127
129
|
assign_private_ip_request_body = {}
|
|
128
130
|
is_ip_reassignment = False
|
|
@@ -214,6 +216,10 @@ def assign_private_ip(ctx, from_json, vnic_id, vlan_id, ip_address, display_name
|
|
|
214
216
|
assign_private_ip_request_body['definedTags'] = cli_util.parse_json_parameter("defined_tags", defined_tags)
|
|
215
217
|
if freeform_tags is not None:
|
|
216
218
|
assign_private_ip_request_body['freeformTags'] = cli_util.parse_json_parameter("freeform_tags", freeform_tags)
|
|
219
|
+
if lifetime is not None:
|
|
220
|
+
assign_private_ip_request_body['lifetime'] = lifetime
|
|
221
|
+
if route_table_id is not None:
|
|
222
|
+
assign_private_ip_request_body['routeTableId'] = route_table_id
|
|
217
223
|
|
|
218
224
|
if lifetime is not None:
|
|
219
225
|
assign_private_ip_request_body['lifetime'] = lifetime
|
|
@@ -222,6 +228,10 @@ def assign_private_ip(ctx, from_json, vnic_id, vlan_id, ip_address, display_name
|
|
|
222
228
|
if not is_ip_reassignment:
|
|
223
229
|
if ip_address is not None:
|
|
224
230
|
assign_private_ip_request_body['ipAddress'] = ip_address
|
|
231
|
+
if cidr_prefix_length is not None:
|
|
232
|
+
assign_private_ip_request_body['cidrPrefixLength'] = cidr_prefix_length
|
|
233
|
+
if ipv4_subnet_cidr_at_creation is not None:
|
|
234
|
+
assign_private_ip_request_body['ipv4SubnetCidrAtCreation'] = ipv4_subnet_cidr_at_creation
|
|
225
235
|
|
|
226
236
|
result = networking_client.create_private_ip(assign_private_ip_request_body)
|
|
227
237
|
else:
|