oci-cli 3.72.0__py3-none-any.whl → 3.72.1__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.
Files changed (107) hide show
  1. oci_cli/bin/iot.psm1 +2 -2
  2. oci_cli/help_text_producer/data_files/text/cmdref/db/action-param-values-summary/list-params-for-action-type.txt +1 -1
  3. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-aws-encryption-key-details.txt +396 -0
  4. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-azure-encryption-key-details.txt +396 -0
  5. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-create-autonomous-container-database-details.txt +11 -0
  6. 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 +11 -0
  7. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-external-hsm-encryption-details.txt +396 -0
  8. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create-autonomous-container-database-google-cloud-provider-encryption-key-details.txt +396 -0
  9. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database/create.txt +11 -0
  10. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-container-database.txt +9 -0
  11. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/change-disaster-recovery-configuration.txt +1 -1
  12. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/configure-saas-admin-user.txt +1 -1
  13. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-adb-cross-region-data-guard-details.txt +18 -2
  14. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-create-cross-region-disaster-recovery-details.txt +18 -2
  15. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-gcp-key-details.txt +18 -2
  16. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-autonomous-database-undelete-autonomous-database-details.txt +18 -2
  17. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-cross-tenancy-disaster-recovery-details.txt +18 -2
  18. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-id.txt +18 -2
  19. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-backup-timestamp.txt +18 -2
  20. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-from-clone.txt +18 -2
  21. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create-refreshable-clone.txt +18 -2
  22. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/create.txt +18 -2
  23. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/fail-over.txt +1 -1
  24. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/import-transportable-tablespace.txt +142 -0
  25. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list-clones.txt +1 -1
  26. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/list.txt +2 -2
  27. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/manual-refresh.txt +1 -1
  28. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restart.txt +1 -1
  29. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/restore.txt +1 -1
  30. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/rotate-key.txt +1 -1
  31. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/shrink.txt +1 -1
  32. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/start.txt +1 -1
  33. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/stop.txt +1 -1
  34. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/switchover.txt +1 -1
  35. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update-autonomous-database-gcp-key-details.txt +9 -4
  36. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database/update.txt +9 -4
  37. oci_cli/help_text_producer/data_files/text/cmdref/db/autonomous-database.txt +2 -0
  38. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/register-cloud-autonomous-vm-cluster-pkcs.txt +140 -0
  39. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster/unregister-cloud-autonomous-vm-cluster-pkcs.txt +140 -0
  40. oci_cli/help_text_producer/data_files/text/cmdref/db/cloud-autonomous-vm-cluster.txt +4 -0
  41. oci_cli/help_text_producer/data_files/text/cmdref/db/database/run-data-patch.txt +165 -0
  42. oci_cli/help_text_producer/data_files/text/cmdref/db/database/update.txt +11 -0
  43. oci_cli/help_text_producer/data_files/text/cmdref/db/database.txt +2 -0
  44. oci_cli/help_text_producer/data_files/text/cmdref/db/db-connection-bundle/download.txt +114 -0
  45. oci_cli/help_text_producer/data_files/text/cmdref/db/db-connection-bundle/get.txt +92 -0
  46. oci_cli/help_text_producer/data_files/text/cmdref/db/db-connection-bundle/list.txt +157 -0
  47. oci_cli/help_text_producer/data_files/text/cmdref/db/db-connection-bundle.txt +18 -0
  48. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/create.txt +3 -2
  49. oci_cli/help_text_producer/data_files/text/cmdref/db/exascale-db-storage-vault/update.txt +3 -2
  50. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/create.txt +1 -1
  51. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/list.txt +1 -1
  52. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run/update.txt +1 -1
  53. oci_cli/help_text_producer/data_files/text/cmdref/db/maintenance-run-history/list.txt +1 -1
  54. oci_cli/help_text_producer/data_files/text/cmdref/db/scheduled-action/create.txt +1 -1
  55. oci_cli/help_text_producer/data_files/text/cmdref/db.txt +26 -0
  56. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error/{list.txt → list-errors.txt} +5 -5
  57. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/work-request-error.txt +1 -1
  58. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log-entry/list-work-request-logs.txt → work-request-log/list-logs.txt} +5 -5
  59. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request/{work-request-log-entry.txt → work-request-log.txt} +3 -3
  60. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control/work-request.txt +3 -3
  61. oci_cli/help_text_producer/data_files/text/cmdref/delegate-access-control.txt +3 -3
  62. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/change-compartment.txt +114 -0
  63. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/create.txt +181 -0
  64. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/delete.txt +138 -0
  65. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/get.txt +100 -0
  66. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/renew.txt +184 -0
  67. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/set-api-key-state.txt +181 -0
  68. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key/update.txt +183 -0
  69. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key-collection/list-api-keys.txt +150 -0
  70. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key-collection.txt +14 -0
  71. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/api-key.txt +30 -0
  72. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/dedicated-ai-cluster/create.txt +6 -5
  73. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint/create.txt +22 -0
  74. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/endpoint/update.txt +22 -0
  75. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/create.txt +5 -0
  76. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/generative-ai-private-endpoint/update.txt +5 -0
  77. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai/model-collection/list-models.txt +1 -1
  78. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/chat-result/chat-cohere-chat-request-v2.txt +350 -0
  79. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/chat-result/chat-generic-chat-request.txt +1 -1
  80. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/chat-result.txt +2 -0
  81. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/embed-text-result/embed-text.txt +16 -0
  82. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/rerank-text-result/rerank-text-dedicated-serving-mode.txt +4 -0
  83. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/rerank-text-result/rerank-text-on-demand-serving-mode.txt +4 -0
  84. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference/rerank-text-result/rerank-text.txt +4 -0
  85. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai-inference.txt +2 -0
  86. oci_cli/help_text_producer/data_files/text/cmdref/generative-ai.txt +20 -0
  87. oci_cli/help_text_producer/data_files/text/cmdref/iot/digital-twin-instance/get-content.txt +3 -2
  88. oci_cli/help_text_producer/data_files/text/cmdref/iot/domain-group/create.txt +10 -0
  89. oci_cli/help_text_producer/data_files/text/cmdref/iot/domain-group/list.txt +8 -0
  90. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error/{list.txt → list-errors.txt} +5 -5
  91. oci_cli/help_text_producer/data_files/text/cmdref/organizations/work-request-error.txt +1 -1
  92. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry → work-request-log}/list.txt +19 -1
  93. oci_cli/help_text_producer/data_files/text/cmdref/organizations/{work-request-log-entry.txt → work-request-log.txt} +2 -2
  94. oci_cli/help_text_producer/data_files/text/cmdref/organizations.txt +2 -2
  95. oci_cli/version.py +1 -1
  96. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/METADATA +2 -2
  97. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/RECORD +107 -84
  98. services/database/src/oci_cli_database/generated/database_cli.py +1446 -140
  99. services/generative_ai/src/oci_cli_generative_ai/generated/generativeai_cli.py +519 -12
  100. services/generative_ai_inference/src/oci_cli_generative_ai_inference/generated/generativeaiinference_cli.py +169 -7
  101. services/identity/src/oci_cli_identity/identity_cli_extended.py +2 -0
  102. services/iot/src/oci_cli_iot/generated/iot_cli.py +10 -3
  103. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/LICENSE.txt +0 -0
  104. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/THIRD_PARTY_LICENSES.txt +0 -0
  105. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/WHEEL +0 -0
  106. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/entry_points.txt +0 -0
  107. {oci_cli-3.72.0.dist-info → oci_cli-3.72.1.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,181 @@
1
+ "create"
2
+ ********
3
+
4
+ * Description
5
+
6
+ * Usage
7
+
8
+ * Required Parameters
9
+
10
+ * Optional Parameters
11
+
12
+ * Global Parameters
13
+
14
+ * Example using required parameter
15
+
16
+
17
+ Description
18
+ ===========
19
+
20
+ Creates a new API key in the specified compartment.
21
+
22
+
23
+ Usage
24
+ =====
25
+
26
+ oci generative-ai api-key create [OPTIONS]
27
+
28
+
29
+ Required Parameters
30
+ ===================
31
+
32
+ --compartment-id, -c [text]
33
+
34
+ The compartment OCID to create the apiKey in.
35
+
36
+ --display-name [text]
37
+
38
+ A user-friendly name. Does not have to be unique, and it’s changeable.
39
+
40
+ --key-details [complex type]
41
+
42
+ The list of key details for creation. This is a complex type whose
43
+ value must be valid JSON. The value can be provided as a string on the
44
+ command line or passed in as a file using the file://path/to/file
45
+ syntax.
46
+
47
+ The "--generate-param-json-input" option can be used to generate an
48
+ example of the JSON which must be provided. We recommend storing this
49
+ example in a file, modifying it as needed and then passing it back in
50
+ via the file:// syntax.
51
+
52
+
53
+ Optional Parameters
54
+ ===================
55
+
56
+ --defined-tags [complex type]
57
+
58
+ Defined tags for this resource. Each key is predefined and scoped to a
59
+ namespace. For more information, see Resource Tags.
60
+
61
+ Example:
62
+
63
+ {"Operations": {"CostCenter": "42"}}
64
+
65
+ This is a complex type whose value must be valid JSON. The value can
66
+ be provided as a string on the command line or passed in as a file
67
+ using the file://path/to/file syntax.
68
+
69
+ The "--generate-param-json-input" option can be used to generate an
70
+ example of the JSON which must be provided. We recommend storing this
71
+ example in a file, modifying it as needed and then passing it back in
72
+ via the file:// syntax.
73
+
74
+ --description [text]
75
+
76
+ An optional description of the Api key.
77
+
78
+ --freeform-tags [complex type]
79
+
80
+ Free-form tags for this resource. Each tag is a simple key-value pair
81
+ with no predefined name, type, or namespace. For more information, see
82
+ Resource Tags.
83
+
84
+ Example:
85
+
86
+ {"Department": "Finance"}
87
+
88
+ This is a complex type whose value must be valid JSON. The value can
89
+ be provided as a string on the command line or passed in as a file
90
+ using the file://path/to/file syntax.
91
+
92
+ The "--generate-param-json-input" option can be used to generate an
93
+ example of the JSON which must be provided. We recommend storing this
94
+ example in a file, modifying it as needed and then passing it back in
95
+ via the file:// syntax.
96
+
97
+ --from-json [text]
98
+
99
+ Provide input to this command as a JSON document from a file using the
100
+ file://path-to/file syntax.
101
+
102
+ The "--generate-full-command-json-input" option can be used to
103
+ generate a sample json file to be used with this command option. The
104
+ key names are pre-populated and match the command option names
105
+ (converted to camelCase format, e.g. compartment-id –> compartmentId),
106
+ while the values of the keys need to be populated by the user before
107
+ using the sample file as an input to this command. For any command
108
+ option that accepts multiple values, the value of the key can be a
109
+ JSON array.
110
+
111
+ Options can still be provided on the command line. If an option exists
112
+ in both the JSON document and the command line then the command line
113
+ specified value will be used.
114
+
115
+ For examples on usage of this option, please see our “using CLI with
116
+ advanced JSON options” link: https://docs.cloud.oracle.com/iaas/Conte
117
+ nt/API/SDKDocs/cliusing.htm#AdvancedJSONOptions
118
+
119
+ --max-wait-seconds [integer]
120
+
121
+ The maximum time to wait for the resource to reach the lifecycle state
122
+ defined by "--wait-for-state". Defaults to 1200 seconds.
123
+
124
+ --wait-for-state [text]
125
+
126
+ This operation creates, modifies or deletes a resource that has a
127
+ defined lifecycle state. Specify this option to perform the action and
128
+ then wait until the resource reaches a given lifecycle state. Multiple
129
+ states can be specified, returning on the first state. For example, "
130
+ --wait-for-state" SUCCEEDED "--wait-for-state" FAILED would return on
131
+ whichever lifecycle state is reached first. If timeout is reached, a
132
+ return code of 2 is returned. For any other error, a return code of 1
133
+ is returned.
134
+
135
+ Accepted values are:
136
+
137
+ ACTIVE, CREATING, DELETED, DELETING, FAILED, UPDATING
138
+
139
+ --wait-interval-seconds [integer]
140
+
141
+ Check every "--wait-interval-seconds" to see whether the resource has
142
+ reached the lifecycle state defined by "--wait-for-state". Defaults to
143
+ 30 seconds.
144
+
145
+
146
+ Global Parameters
147
+ =================
148
+
149
+ Use "oci --help" for help on global parameters.
150
+
151
+ "--auth-purpose", "--auth", "--cert-bundle", "--cli-auto-prompt", "--
152
+ cli-rc-file", "--config-file", "--connection-timeout", "--debug", "--
153
+ defaults-file", "--enable-dual-stack", "--enable-propagation", "--
154
+ endpoint", "--generate-full-command-json-input", "--generate-param-
155
+ json-input", "--help", "--latest-version", "--max-retries", "--no-
156
+ retry", "--opc-client-request-id", "--opc-request-id", "--output", "--
157
+ profile", "--proxy", "--query", "--raw-output", "--read-timeout", "--
158
+ realm-specific-endpoint", "--region", "--release-info", "--request-
159
+ id", "--version", "-?", "-d", "-h", "-i", "-v"
160
+
161
+
162
+ Example using required parameter
163
+ ================================
164
+
165
+ Copy and paste the following example into a JSON file, replacing the
166
+ example parameters with your own.
167
+
168
+ oci generative-ai api-key create --generate-param-json-input key-details > key-details.json
169
+
170
+ Copy the following CLI commands into a file named example.sh. Run the
171
+ command by typing “bash example.sh” and replacing the example
172
+ parameters with your own.
173
+
174
+ Please note this sample will only work in the POSIX-compliant bash-
175
+ like shell. You need to set up the OCI configuration and appropriate
176
+ security policies before trying the examples.
177
+
178
+ export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-compartment-id
179
+ export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-display-name
180
+
181
+ oci generative-ai api-key create --compartment-id $compartment_id --display-name $display_name --key-details file://key-details.json
@@ -0,0 +1,138 @@
1
+ "delete"
2
+ ********
3
+
4
+ * Description
5
+
6
+ * Usage
7
+
8
+ * Required Parameters
9
+
10
+ * Optional Parameters
11
+
12
+ * Global Parameters
13
+
14
+ * Example using required parameter
15
+
16
+
17
+ Description
18
+ ===========
19
+
20
+ Deletes an API key.
21
+
22
+
23
+ Usage
24
+ =====
25
+
26
+ oci generative-ai api-key delete [OPTIONS]
27
+
28
+
29
+ Required Parameters
30
+ ===================
31
+
32
+ --api-key-id [text]
33
+
34
+ The OCID of the APIKey.
35
+
36
+
37
+ Optional Parameters
38
+ ===================
39
+
40
+ --force
41
+
42
+ Perform deletion without prompting for confirmation.
43
+
44
+ --from-json [text]
45
+
46
+ Provide input to this command as a JSON document from a file using the
47
+ file://path-to/file syntax.
48
+
49
+ The "--generate-full-command-json-input" option can be used to
50
+ generate a sample json file to be used with this command option. The
51
+ key names are pre-populated and match the command option names
52
+ (converted to camelCase format, e.g. compartment-id –> compartmentId),
53
+ while the values of the keys need to be populated by the user before
54
+ using the sample file as an input to this command. For any command
55
+ option that accepts multiple values, the value of the key can be a
56
+ JSON array.
57
+
58
+ Options can still be provided on the command line. If an option exists
59
+ in both the JSON document and the command line then the command line
60
+ specified value will be used.
61
+
62
+ For examples on usage of this option, please see our “using CLI with
63
+ advanced JSON options” link: https://docs.cloud.oracle.com/iaas/Conte
64
+ nt/API/SDKDocs/cliusing.htm#AdvancedJSONOptions
65
+
66
+ --if-match [text]
67
+
68
+ For optimistic concurrency control. In the PUT or DELETE call for a
69
+ resource, set the *if-match* parameter to the value of the etag from a
70
+ previous GET or POST response for that resource. The resource will be
71
+ updated or deleted only if the etag you provide matches the resource’s
72
+ current etag value.
73
+
74
+ --max-wait-seconds [integer]
75
+
76
+ The maximum time to wait for the resource to reach the lifecycle state
77
+ defined by "--wait-for-state". Defaults to 1200 seconds.
78
+
79
+ --wait-for-state [text]
80
+
81
+ This operation creates, modifies or deletes a resource that has a
82
+ defined lifecycle state. Specify this option to perform the action and
83
+ then wait until the resource reaches a given lifecycle state. Multiple
84
+ states can be specified, returning on the first state. For example, "
85
+ --wait-for-state" SUCCEEDED "--wait-for-state" FAILED would return on
86
+ whichever lifecycle state is reached first. If timeout is reached, a
87
+ return code of 2 is returned. For any other error, a return code of 1
88
+ is returned.
89
+
90
+ Accepted values are:
91
+
92
+ ACTIVE, CREATING, DELETED, DELETING, FAILED, UPDATING
93
+
94
+ --wait-interval-seconds [integer]
95
+
96
+ Check every "--wait-interval-seconds" to see whether the resource has
97
+ reached the lifecycle state defined by "--wait-for-state". Defaults to
98
+ 30 seconds.
99
+
100
+
101
+ Global Parameters
102
+ =================
103
+
104
+ Use "oci --help" for help on global parameters.
105
+
106
+ "--auth-purpose", "--auth", "--cert-bundle", "--cli-auto-prompt", "--
107
+ cli-rc-file", "--config-file", "--connection-timeout", "--debug", "--
108
+ defaults-file", "--enable-dual-stack", "--enable-propagation", "--
109
+ endpoint", "--generate-full-command-json-input", "--generate-param-
110
+ json-input", "--help", "--latest-version", "--max-retries", "--no-
111
+ retry", "--opc-client-request-id", "--opc-request-id", "--output", "--
112
+ profile", "--proxy", "--query", "--raw-output", "--read-timeout", "--
113
+ realm-specific-endpoint", "--region", "--release-info", "--request-
114
+ id", "--version", "-?", "-d", "-h", "-i", "-v"
115
+
116
+
117
+ Example using required parameter
118
+ ================================
119
+
120
+ Copy and paste the following example into a JSON file, replacing the
121
+ example parameters with your own.
122
+
123
+ oci generative-ai api-key create --generate-param-json-input key-details > key-details.json
124
+
125
+ Copy the following CLI commands into a file named example.sh. Run the
126
+ command by typing “bash example.sh” and replacing the example
127
+ parameters with your own.
128
+
129
+ Please note this sample will only work in the POSIX-compliant bash-
130
+ like shell. You need to set up the OCI configuration and appropriate
131
+ security policies before trying the examples.
132
+
133
+ export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-compartment-id
134
+ export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-display-name
135
+
136
+ api_key_id=$(oci generative-ai api-key create --compartment-id $compartment_id --display-name $display_name --key-details file://key-details.json --query data.id --raw-output)
137
+
138
+ oci generative-ai api-key delete --api-key-id $api_key_id
@@ -0,0 +1,100 @@
1
+ "get"
2
+ *****
3
+
4
+ * Description
5
+
6
+ * Usage
7
+
8
+ * Required Parameters
9
+
10
+ * Optional Parameters
11
+
12
+ * Global Parameters
13
+
14
+ * Example using required parameter
15
+
16
+
17
+ Description
18
+ ===========
19
+
20
+ Gets information about an API key.
21
+
22
+
23
+ Usage
24
+ =====
25
+
26
+ oci generative-ai api-key get [OPTIONS]
27
+
28
+
29
+ Required Parameters
30
+ ===================
31
+
32
+ --api-key-id [text]
33
+
34
+ The OCID of the APIKey.
35
+
36
+
37
+ Optional Parameters
38
+ ===================
39
+
40
+ --from-json [text]
41
+
42
+ Provide input to this command as a JSON document from a file using the
43
+ file://path-to/file syntax.
44
+
45
+ The "--generate-full-command-json-input" option can be used to
46
+ generate a sample json file to be used with this command option. The
47
+ key names are pre-populated and match the command option names
48
+ (converted to camelCase format, e.g. compartment-id –> compartmentId),
49
+ while the values of the keys need to be populated by the user before
50
+ using the sample file as an input to this command. For any command
51
+ option that accepts multiple values, the value of the key can be a
52
+ JSON array.
53
+
54
+ Options can still be provided on the command line. If an option exists
55
+ in both the JSON document and the command line then the command line
56
+ specified value will be used.
57
+
58
+ For examples on usage of this option, please see our “using CLI with
59
+ advanced JSON options” link: https://docs.cloud.oracle.com/iaas/Conte
60
+ nt/API/SDKDocs/cliusing.htm#AdvancedJSONOptions
61
+
62
+
63
+ Global Parameters
64
+ =================
65
+
66
+ Use "oci --help" for help on global parameters.
67
+
68
+ "--auth-purpose", "--auth", "--cert-bundle", "--cli-auto-prompt", "--
69
+ cli-rc-file", "--config-file", "--connection-timeout", "--debug", "--
70
+ defaults-file", "--enable-dual-stack", "--enable-propagation", "--
71
+ endpoint", "--generate-full-command-json-input", "--generate-param-
72
+ json-input", "--help", "--latest-version", "--max-retries", "--no-
73
+ retry", "--opc-client-request-id", "--opc-request-id", "--output", "--
74
+ profile", "--proxy", "--query", "--raw-output", "--read-timeout", "--
75
+ realm-specific-endpoint", "--region", "--release-info", "--request-
76
+ id", "--version", "-?", "-d", "-h", "-i", "-v"
77
+
78
+
79
+ Example using required parameter
80
+ ================================
81
+
82
+ Copy and paste the following example into a JSON file, replacing the
83
+ example parameters with your own.
84
+
85
+ oci generative-ai api-key create --generate-param-json-input key-details > key-details.json
86
+
87
+ Copy the following CLI commands into a file named example.sh. Run the
88
+ command by typing “bash example.sh” and replacing the example
89
+ parameters with your own.
90
+
91
+ Please note this sample will only work in the POSIX-compliant bash-
92
+ like shell. You need to set up the OCI configuration and appropriate
93
+ security policies before trying the examples.
94
+
95
+ export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-compartment-id
96
+ export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-display-name
97
+
98
+ api_key_id=$(oci generative-ai api-key create --compartment-id $compartment_id --display-name $display_name --key-details file://key-details.json --query data.id --raw-output)
99
+
100
+ oci generative-ai api-key get --api-key-id $api_key_id
@@ -0,0 +1,184 @@
1
+ "renew"
2
+ *******
3
+
4
+ * Description
5
+
6
+ * Usage
7
+
8
+ * Required Parameters
9
+
10
+ * Optional Parameters
11
+
12
+ * Global Parameters
13
+
14
+ * Example using required parameter
15
+
16
+
17
+ Description
18
+ ===========
19
+
20
+ Renew the primary or secondary key.
21
+
22
+
23
+ Usage
24
+ =====
25
+
26
+ oci generative-ai api-key renew [OPTIONS]
27
+
28
+
29
+ Required Parameters
30
+ ===================
31
+
32
+ --api-key-id [text]
33
+
34
+ The OCID of the APIKey.
35
+
36
+ --details [complex type]
37
+
38
+ This is a complex type whose value must be valid JSON. The value can
39
+ be provided as a string on the command line or passed in as a file
40
+ using the file://path/to/file syntax.
41
+
42
+ The "--generate-param-json-input" option can be used to generate an
43
+ example of the JSON which must be provided. We recommend storing this
44
+ example in a file, modifying it as needed and then passing it back in
45
+ via the file:// syntax.
46
+
47
+
48
+ Optional Parameters
49
+ ===================
50
+
51
+ --defined-tags [complex type]
52
+
53
+ Defined tags for this resource. Each key is predefined and scoped to a
54
+ namespace. For more information, see Resource Tags.
55
+
56
+ Example:
57
+
58
+ {"Operations": {"CostCenter": "42"}}
59
+
60
+ This is a complex type whose value must be valid JSON. The value can
61
+ be provided as a string on the command line or passed in as a file
62
+ using the file://path/to/file syntax.
63
+
64
+ The "--generate-param-json-input" option can be used to generate an
65
+ example of the JSON which must be provided. We recommend storing this
66
+ example in a file, modifying it as needed and then passing it back in
67
+ via the file:// syntax.
68
+
69
+ --freeform-tags [complex type]
70
+
71
+ Free-form tags for this resource. Each tag is a simple key-value pair
72
+ with no predefined name, type, or namespace. For more information, see
73
+ Resource Tags.
74
+
75
+ Example:
76
+
77
+ {"Department": "Finance"}
78
+
79
+ This is a complex type whose value must be valid JSON. The value can
80
+ be provided as a string on the command line or passed in as a file
81
+ using the file://path/to/file syntax.
82
+
83
+ The "--generate-param-json-input" option can be used to generate an
84
+ example of the JSON which must be provided. We recommend storing this
85
+ example in a file, modifying it as needed and then passing it back in
86
+ via the file:// syntax.
87
+
88
+ --from-json [text]
89
+
90
+ Provide input to this command as a JSON document from a file using the
91
+ file://path-to/file syntax.
92
+
93
+ The "--generate-full-command-json-input" option can be used to
94
+ generate a sample json file to be used with this command option. The
95
+ key names are pre-populated and match the command option names
96
+ (converted to camelCase format, e.g. compartment-id –> compartmentId),
97
+ while the values of the keys need to be populated by the user before
98
+ using the sample file as an input to this command. For any command
99
+ option that accepts multiple values, the value of the key can be a
100
+ JSON array.
101
+
102
+ Options can still be provided on the command line. If an option exists
103
+ in both the JSON document and the command line then the command line
104
+ specified value will be used.
105
+
106
+ For examples on usage of this option, please see our “using CLI with
107
+ advanced JSON options” link: https://docs.cloud.oracle.com/iaas/Conte
108
+ nt/API/SDKDocs/cliusing.htm#AdvancedJSONOptions
109
+
110
+ --if-match [text]
111
+
112
+ For optimistic concurrency control. In the PUT or DELETE call for a
113
+ resource, set the *if-match* parameter to the value of the etag from a
114
+ previous GET or POST response for that resource. The resource will be
115
+ updated or deleted only if the etag you provide matches the resource’s
116
+ current etag value.
117
+
118
+ --max-wait-seconds [integer]
119
+
120
+ The maximum time to wait for the resource to reach the lifecycle state
121
+ defined by "--wait-for-state". Defaults to 1200 seconds.
122
+
123
+ --wait-for-state [text]
124
+
125
+ This operation creates, modifies or deletes a resource that has a
126
+ defined lifecycle state. Specify this option to perform the action and
127
+ then wait until the resource reaches a given lifecycle state. Multiple
128
+ states can be specified, returning on the first state. For example, "
129
+ --wait-for-state" SUCCEEDED "--wait-for-state" FAILED would return on
130
+ whichever lifecycle state is reached first. If timeout is reached, a
131
+ return code of 2 is returned. For any other error, a return code of 1
132
+ is returned.
133
+
134
+ Accepted values are:
135
+
136
+ ACTIVE, CREATING, DELETED, DELETING, FAILED, UPDATING
137
+
138
+ --wait-interval-seconds [integer]
139
+
140
+ Check every "--wait-interval-seconds" to see whether the resource has
141
+ reached the lifecycle state defined by "--wait-for-state". Defaults to
142
+ 30 seconds.
143
+
144
+
145
+ Global Parameters
146
+ =================
147
+
148
+ Use "oci --help" for help on global parameters.
149
+
150
+ "--auth-purpose", "--auth", "--cert-bundle", "--cli-auto-prompt", "--
151
+ cli-rc-file", "--config-file", "--connection-timeout", "--debug", "--
152
+ defaults-file", "--enable-dual-stack", "--enable-propagation", "--
153
+ endpoint", "--generate-full-command-json-input", "--generate-param-
154
+ json-input", "--help", "--latest-version", "--max-retries", "--no-
155
+ retry", "--opc-client-request-id", "--opc-request-id", "--output", "--
156
+ profile", "--proxy", "--query", "--raw-output", "--read-timeout", "--
157
+ realm-specific-endpoint", "--region", "--release-info", "--request-
158
+ id", "--version", "-?", "-d", "-h", "-i", "-v"
159
+
160
+
161
+ Example using required parameter
162
+ ================================
163
+
164
+ Copy and paste the following example into a JSON file, replacing the
165
+ example parameters with your own.
166
+
167
+ oci generative-ai api-key create --generate-param-json-input key-details > key-details.json
168
+
169
+ oci generative-ai api-key renew --generate-param-json-input details > details.json
170
+
171
+ Copy the following CLI commands into a file named example.sh. Run the
172
+ command by typing “bash example.sh” and replacing the example
173
+ parameters with your own.
174
+
175
+ Please note this sample will only work in the POSIX-compliant bash-
176
+ like shell. You need to set up the OCI configuration and appropriate
177
+ security policies before trying the examples.
178
+
179
+ export compartment_id=<substitute-value-of-compartment_id> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-compartment-id
180
+ export display_name=<substitute-value-of-display_name> # https://docs.cloud.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/generative-ai/api-key/create.html#cmdoption-display-name
181
+
182
+ api_key_id=$(oci generative-ai api-key create --compartment-id $compartment_id --display-name $display_name --key-details file://key-details.json --query data.id --raw-output)
183
+
184
+ oci generative-ai api-key renew --api-key-id $api_key_id --details file://details.json