📢 New Feature in OCI: Attach Files to Support Requests Using CLI & API
Managing Oracle Cloud Infrastructure (OCI) Support Requests (SRs) just got easier.
As of the latest release, you can now attach files — such as logs, screenshots, or diagnostic reports — directly to your Support Requests using the OCI CLI or REST API.
This eliminates the need to switch between interfaces and allows faster collaboration with Oracle Support teams.
Why This Matters
When you raise a support request, Oracle Support often asks for:
-
Logs, configuration files, or screenshots
-
Diagnostic outputs from database, compute, or network services
-
Supporting documents that speed up troubleshooting
With this feature, you can now automate and script file attachments, making it easy to integrate into your existing support workflows.
Prerequisites
Before you begin, ensure:
-
You have a valid OCI account and access to the tenancy.
-
Your OCI CLI is installed and configured with API keys. Refer to for setup: https://docs.oracle.com/en-us/iaas/Content/GSG/Tasks/usingsupport.htm
You already created a Support Request (Incident) and have its Incident Key.
Attaching Files Using OCI CLI
The new command oci support incident put-attachment allows you to upload files directly to an SR.
Syntax
Example
✅ In this example:
-
db-alert-logis the name of the file as it appears in the SR. -
The file /u01/oracle/19chome/trace/db_alert.log will be uploaded.
-
The attachment is visible to both customer and Oracle Support (
false= not restricted).
Attaching Files Using REST API
For developers and automation workflows, the feature is also available via the Incident Management API.
API Reference
https://docs.oracle.com/en-us/iaas/api/#/en/incidentmanagement/20181231/Incident/PutAttachmentRequest Example
Key Parameters
-
incidentKey → The support request ID.
-
file → The log or document you want to upload.
-
isRestrictedFlag → Whether Oracle only can view it (
true) or customer also can (false).
Putting It All Together
-
Raise a Support Request (SR) in OCI Console or via API.
-
Identify the Incident Key (SR ID).
-
Attach files via CLI for simple scripts or API for automation pipelines.
-
Monitor the SR in OCI Console — your attachments will now be visible to Oracle Support.
Key Benefits
-
Faster Response/Actions: Provide logs and files without delays.
-
Automation-ready: Integrate with your scripts and CI/CD pipelines.
-
Security control: Decide whether files are restricted to Oracle only.
Comments
Post a Comment